MCPcopy Create free account

hub / github.com/LARS-research/TabGNN / functions

Functions233 in github.com/LARS-research/TabGNN

↓ 16 callersMethodfit
If dtype == 'float', clean_data will cast the contents of data to floats
data/data_encoders.py:45
↓ 13 callersFunctionrun_script_with_kwargs
(script_name, kwargs, session_name, locale='local_tmux', n_gpu=0, n_cpu=1)
experiments/utils.py:15
↓ 10 callersMethodget_act
(self)
models/GNN/GNNModelBase.py:96
↓ 9 callersMethodclean_data
(self, data, dtype=None)
data/data_encoders.py:32
↓ 7 callersMethodget_norm
(self, num_feats)
models/GNN/GNNModelBase.py:99
↓ 6 callersFunctionget_db_info
(db_name)
data/utils.py:124
↓ 6 callersFunctionget_ds_info
ds_name can be the name of the dataset in data.tabular_ds_info.json, or a path to a .ds_info.json file
data/utils.py:132
↓ 5 callersMethodfit
(self, data)
data/data_encoders.py:498
↓ 5 callersFunctionrecursive_to
(iterable, device)
models/utils.py:56
↓ 5 callersFunctionsave_model_checkpoint
(writer, epoch, model, optimizer, lr_sched, chkpt_name=None)
models/utils.py:36
↓ 4 callersMethod__init__
(self, model, gamma=2.0, weight: list = None, **kwargs)
models/losses.py:33
↓ 4 callersMethod__init__
(self, hidden_dim, n_iters, n_layers)
models/readouts.py:45
↓ 4 callersMethod__init__
(self, n_heads, residual, **kwargs)
models/GNN/GAT.py:18
↓ 4 callersMethod__init__
(self, **kwargs)
models/GNN/GCN.py:17
↓ 4 callersMethodadd_histogram
(self, *args, **kwargs)
utils.py:326
↓ 4 callersMethodenc_cont
(self, data: Iterable)
data/data_encoders.py:57
↓ 4 callersMethodencode
(self, feature_encoders)
data/TabularDataset.py:75
↓ 4 callersFunctionget_dataloader
(dataset: Union[DatabaseDataset, TabularDataset], batch_size, sampler_cl
utils.py:295
↓ 4 callersFunctionget_neo4j_db_driver
(db_name)
data/utils.py:282
↓ 3 callersFunctionget_db_container
Grab the container id for this db's docker container, starting container if needed. If you can't connect, make sure the store_lock file is re
data/utils.py:220
↓ 3 callersMethodget_new_base_enc
()
data/data_encoders.py:457
↓ 3 callersFunctionget_train_test_dp_ids
(dataset_name)
utils.py:214
↓ 3 callersFunctionrun_dfs
(es, target_entity, agg_primitives, trans_primitives, ignore_variables, max_depth, n_jobs, chunk_size)
data/utils.py:360
↓ 2 callersMethod__init__
(self, meta_paths, n_heads, residual, **kwargs)
models/GNN/HAN.py:88
↓ 2 callersFunctionadd_datepart
Helper function that adds columns relevant to a date in the column `field_name` of `df`.
data/data_encoders.py:567
↓ 2 callersMethodenc_cat
(self, data: Iterable)
data/data_encoders.py:54
↓ 2 callersFunctionformat_hparam_dict_for_tb
tensorboard hparam logger needs a dict with all values as ints, floats, or strings. This function flattens a dict into that format.
utils.py:54
↓ 2 callersMethodget_act
(self)
models/tabular/TabModelBase.py:58
↓ 2 callersMethodget_encoded
(self, text_strings)
data/data_encoders.py:492
↓ 2 callersMethodget_new_base_enc
()
data/data_encoders.py:147
↓ 2 callersMethodget_new_base_enc
()
data/data_encoders.py:213
↓ 2 callersMethodget_new_base_enc
()
data/data_encoders.py:239
↓ 2 callersMethodget_new_base_enc
()
data/data_encoders.py:261
↓ 2 callersMethodget_new_base_enc
()
data/data_encoders.py:418
↓ 2 callersMethodget_norm
(self, num_feats)
models/tabular/TabModelBase.py:61
↓ 2 callersFunctionget_optim_with_correct_wd
(optimizer_class_name, model, optimizer_kwargs, wd_bias=False, wd_embed=False, w
utils.py:253
↓ 2 callersFunctionget_train_val_test_datasets
(dataset_name, train_test_split, encoders, train_fraction_to_use=1.0)
utils.py:230
↓ 2 callersFunctioninit_model
()
start_training.py:152
↓ 2 callersMethodinit_with_sorted_values
(self, sorted_vals)
data/data_encoders.py:90
↓ 2 callersFunctionlog_param_values
(writer, model)
utils.py:71
↓ 2 callersFunctionmake_date
Make sure `df[field_name]` is of the right date type.
data/data_encoders.py:558
↓ 2 callersFunctionmodel_to_device
(model, device_id)
utils.py:281
↓ 2 callersMethodpred_from_output
Returns the model's prediction of the class of the input given the output of self.forward
models/GNN/GNNModelBase.py:154
↓ 2 callersFunctiontrain_val_split
(dp_ids, dataset_name)
data/utils.py:294
↓ 2 callersFunctionvalidate_model
(writer, val_loader, model, epoch)
start_training.py:64
↓ 1 callersMethod__init__
(self, vocabulary_=None, idf_=None)
data/data_encoders.py:428
↓ 1 callersMethod__init__
(self, layer_sizes, **kwargs)
models/tabular/TabMLP.py:14
↓ 1 callersFunctionadd_cyclic_datepart
Helper function that adds trigonometric date/time features to a date in the column `field_name` of `df`.
data/data_encoders.py:608
↓ 1 callersMethodadd_text
(self, *args, **kwargs)
utils.py:340
↓ 1 callersFunctionbuild_database_from_kaggle_files
()
data/jd_single/build_database_from_kaggle_files.py:10
↓ 1 callersFunctionbuild_db_info
(db_name, db_info, test_dp_query, train_dp_query)
data/utils.py:109
↓ 1 callersFunctioncreate_datapoint_from_database
(db_name, base_query, target_dir, dp_id)
data/create_datapoint_from_database.py:11
↓ 1 callersFunctioncreate_datapoints_with_xargs
Hands the job of running create_datapoint_from_database in parallel over to the linux scheduler and xargs, for speed and memory improveme
data/utils.py:186
↓ 1 callersFunctioncyclic_dt_feat_names
Return feature names of date/time cycles as produced by `cyclic_dt_features`.
data/data_encoders.py:580
↓ 1 callersFunctiondump_activations
(ds_name, train_kwargs, train_data, encoders, results_dir, model, module_acts_to_dump, nu
start_evaluating.py:78
↓ 1 callersFunctionevaluate_model
(test_loader, train_kwargs, results_dir, model)
start_evaluating.py:25
↓ 1 callersMethodfeature_recover
(self, dp)
data/DatabaseDataset.py:119
↓ 1 callersMethodfit
(self, data: Iterable)
data/data_encoders.py:66
↓ 1 callersFunctionfive_fold_split_iter
(train_dp_ids)
data/utils.py:306
↓ 1 callersFunctionget_DGL_collator
(feature_encoders, db_info, max_nodes_per_graph=False)
utils.py:110
↓ 1 callersMethodget_base_enc_params
(self)
data/data_encoders.py:216
↓ 1 callersFunctionget_good_lr
Find and return a good learning rate for this model with this optimizer. ***THIS MESSES UP THE MODEL AND OPTIMIZER - YOU NEED TO RESET THEM
models/utils.py:100
↓ 1 callersFunctionget_kwargs
(db_name)
experiments/GNN/ERGCN.py:16
↓ 1 callersFunctionget_kwargs
(db_name, space)
experiments/GNN/ERGCN_hp.py:23
↓ 1 callersFunctionget_kwargs
(db_name)
experiments/GNN/GAT.py:13
↓ 1 callersFunctionget_kwargs
(db_name)
experiments/GNN/HAN.py:13
↓ 1 callersFunctionget_kwargs
(db_name, space)
experiments/GNN/ERGAT_hp.py:23
↓ 1 callersFunctionget_kwargs
(db_name)
experiments/GNN/ERGIN.py:15
↓ 1 callersFunctionget_kwargs
(db_name, space)
experiments/GNN/GAT_hp.py:24
↓ 1 callersFunctionget_kwargs
(db_name)
experiments/GNN/ERGAT.py:16
↓ 1 callersFunctionget_kwargs
(db_name)
experiments/GNN/GCN.py:17
↓ 1 callersFunctionget_kwargs
(ds_name)
experiments/tabular/TabMLP.py:14
↓ 1 callersFunctionget_kwargs
(ds_name)
experiments/tabular/TabLogReg.py:13
↓ 1 callersMethodget_origin_data_dict
(self)
data/DatabaseDataset.py:83
↓ 1 callersMethodgnn_forward
Runs the GNN component of the model and returns logits for output classes. :param g: BatchedDGLGraph with g.ndata[h] initialized to
models/GNN/GNNModelBase.py:146
↓ 1 callersMethodinit_batch
Uses the tabular models in self.node_initializers to encode the raw database features (datetimes, text, etc.) of each table, such tha
models/GNN/GNNModelBase.py:102
↓ 1 callersMethodinit_loss_fxn
(self)
models/tabular/TabModelBase.py:54
↓ 1 callersFunctionmain
(kwargs)
start_training.py:285
↓ 1 callersFunctionmain
(kwargs)
start_evaluating.py:192
↓ 1 callersFunctionone_hot
(x, card)
data/data_encoders.py:545
↓ 1 callersMethodoverride_model_forward
(self, model)
models/losses.py:77
↓ 1 callersMethodoverride_model_forward
(self, model)
models/losses.py:139
↓ 1 callersMethodoverride_model_forward
(self, model)
models/losses.py:199
↓ 1 callersFunctionpopulate_db_info
(db_name, db_info)
data/utils.py:23
↓ 1 callersFunctionrec_val_generator
(generator)
data/utils.py:74
↓ 1 callersFunctionregister_module_hooks
(module_name, module, writer, dump_values=False)
models/utils.py:69
↓ 1 callersMethodreset_parameters
(self)
models/utils.py:190
↓ 1 callersFunctionsave_train_kwargs
(writer, train_kwargs)
models/utils.py:25
↓ 1 callersFunctionset_dataframe_column_types
Fixes the column types of the dataframe output by featuretools to match those of features (why this isn't done automatically I have no idea..
data/utils.py:342
↓ 1 callersFunctionsetup_writer
(log_dir, debug_network)
utils.py:29
↓ 1 callersFunctionstart_evaluating
( do_evaluate, do_dump_activations, module_acts_to_dump, model_logdir,
start_evaluating.py:126
↓ 1 callersFunctiontest_lrs
Adapted from https://sgugger.github.io/how-do-you-find-a-good-learning-rate.html Does a single epoch of training, sweeping through learning r
models/utils.py:127
↓ 1 callersFunctiontrain_epoch
(writer, train_loader, model, optimizer, scheduler, epoch)
start_training.py:36
↓ 1 callersFunctiontrain_model
( writer, seed, log_dir, debug_network, dataset_name, train_te
start_training.py:103
↓ 1 callersFunctiontruncate_graph
Returns a trunated copy of edge_list, node_types, edge_types, and features. Removes all nodes with index >= max_nodes_per_graph
utils.py:78
↓ 1 callersFunctionwrite_kaggle_submission_file
predictions should be pandas dataframe with columns ['dp_id', 'prob']
data/utils.py:269
FunctionDGL_collator
(datapoints)
utils.py:111
Method__getitem__
(self, item: int)
data/TabularDataset.py:105
Method__getitem__
(self, item: int)
data/DatabaseDataset.py:111
Method__init__
(self)
utils.py:323
next →1–100 of 233, ranked by callers