Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LARS-research/TabGNN
/ functions
Functions
233 in github.com/LARS-research/TabGNN
⨍
Functions
233
◇
Types & classes
52
↓ 16 callers
Method
fit
If dtype == 'float', clean_data will cast the contents of data to floats
data/data_encoders.py:45
↓ 13 callers
Function
run_script_with_kwargs
(script_name, kwargs, session_name, locale='local_tmux', n_gpu=0, n_cpu=1)
experiments/utils.py:15
↓ 10 callers
Method
get_act
(self)
models/GNN/GNNModelBase.py:96
↓ 9 callers
Method
clean_data
(self, data, dtype=None)
data/data_encoders.py:32
↓ 7 callers
Method
get_norm
(self, num_feats)
models/GNN/GNNModelBase.py:99
↓ 6 callers
Function
get_db_info
(db_name)
data/utils.py:124
↓ 6 callers
Function
get_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 callers
Method
fit
(self, data)
data/data_encoders.py:498
↓ 5 callers
Function
recursive_to
(iterable, device)
models/utils.py:56
↓ 5 callers
Function
save_model_checkpoint
(writer, epoch, model, optimizer, lr_sched, chkpt_name=None)
models/utils.py:36
↓ 4 callers
Method
__init__
(self, model, gamma=2.0, weight: list = None, **kwargs)
models/losses.py:33
↓ 4 callers
Method
__init__
(self, hidden_dim, n_iters, n_layers)
models/readouts.py:45
↓ 4 callers
Method
__init__
(self, n_heads, residual, **kwargs)
models/GNN/GAT.py:18
↓ 4 callers
Method
__init__
(self, **kwargs)
models/GNN/GCN.py:17
↓ 4 callers
Method
add_histogram
(self, *args, **kwargs)
utils.py:326
↓ 4 callers
Method
enc_cont
(self, data: Iterable)
data/data_encoders.py:57
↓ 4 callers
Method
encode
(self, feature_encoders)
data/TabularDataset.py:75
↓ 4 callers
Function
get_dataloader
(dataset: Union[DatabaseDataset, TabularDataset], batch_size, sampler_cl
utils.py:295
↓ 4 callers
Function
get_neo4j_db_driver
(db_name)
data/utils.py:282
↓ 3 callers
Function
get_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 callers
Method
get_new_base_enc
()
data/data_encoders.py:457
↓ 3 callers
Function
get_train_test_dp_ids
(dataset_name)
utils.py:214
↓ 3 callers
Function
run_dfs
(es, target_entity, agg_primitives, trans_primitives, ignore_variables, max_depth, n_jobs, chunk_size)
data/utils.py:360
↓ 2 callers
Method
__init__
(self, meta_paths, n_heads, residual, **kwargs)
models/GNN/HAN.py:88
↓ 2 callers
Function
add_datepart
Helper function that adds columns relevant to a date in the column `field_name` of `df`.
data/data_encoders.py:567
↓ 2 callers
Method
enc_cat
(self, data: Iterable)
data/data_encoders.py:54
↓ 2 callers
Function
format_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 callers
Method
get_act
(self)
models/tabular/TabModelBase.py:58
↓ 2 callers
Method
get_encoded
(self, text_strings)
data/data_encoders.py:492
↓ 2 callers
Method
get_new_base_enc
()
data/data_encoders.py:147
↓ 2 callers
Method
get_new_base_enc
()
data/data_encoders.py:213
↓ 2 callers
Method
get_new_base_enc
()
data/data_encoders.py:239
↓ 2 callers
Method
get_new_base_enc
()
data/data_encoders.py:261
↓ 2 callers
Method
get_new_base_enc
()
data/data_encoders.py:418
↓ 2 callers
Method
get_norm
(self, num_feats)
models/tabular/TabModelBase.py:61
↓ 2 callers
Function
get_optim_with_correct_wd
(optimizer_class_name, model, optimizer_kwargs, wd_bias=False, wd_embed=False, w
utils.py:253
↓ 2 callers
Function
get_train_val_test_datasets
(dataset_name, train_test_split, encoders, train_fraction_to_use=1.0)
utils.py:230
↓ 2 callers
Function
init_model
()
start_training.py:152
↓ 2 callers
Method
init_with_sorted_values
(self, sorted_vals)
data/data_encoders.py:90
↓ 2 callers
Function
log_param_values
(writer, model)
utils.py:71
↓ 2 callers
Function
make_date
Make sure `df[field_name]` is of the right date type.
data/data_encoders.py:558
↓ 2 callers
Function
model_to_device
(model, device_id)
utils.py:281
↓ 2 callers
Method
pred_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 callers
Function
train_val_split
(dp_ids, dataset_name)
data/utils.py:294
↓ 2 callers
Function
validate_model
(writer, val_loader, model, epoch)
start_training.py:64
↓ 1 callers
Method
__init__
(self, vocabulary_=None, idf_=None)
data/data_encoders.py:428
↓ 1 callers
Method
__init__
(self, layer_sizes, **kwargs)
models/tabular/TabMLP.py:14
↓ 1 callers
Function
add_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 callers
Method
add_text
(self, *args, **kwargs)
utils.py:340
↓ 1 callers
Function
build_database_from_kaggle_files
()
data/jd_single/build_database_from_kaggle_files.py:10
↓ 1 callers
Function
build_db_info
(db_name, db_info, test_dp_query, train_dp_query)
data/utils.py:109
↓ 1 callers
Function
create_datapoint_from_database
(db_name, base_query, target_dir, dp_id)
data/create_datapoint_from_database.py:11
↓ 1 callers
Function
create_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 callers
Function
cyclic_dt_feat_names
Return feature names of date/time cycles as produced by `cyclic_dt_features`.
data/data_encoders.py:580
↓ 1 callers
Function
dump_activations
(ds_name, train_kwargs, train_data, encoders, results_dir, model, module_acts_to_dump, nu
start_evaluating.py:78
↓ 1 callers
Function
evaluate_model
(test_loader, train_kwargs, results_dir, model)
start_evaluating.py:25
↓ 1 callers
Method
feature_recover
(self, dp)
data/DatabaseDataset.py:119
↓ 1 callers
Method
fit
(self, data: Iterable)
data/data_encoders.py:66
↓ 1 callers
Function
five_fold_split_iter
(train_dp_ids)
data/utils.py:306
↓ 1 callers
Function
get_DGL_collator
(feature_encoders, db_info, max_nodes_per_graph=False)
utils.py:110
↓ 1 callers
Method
get_base_enc_params
(self)
data/data_encoders.py:216
↓ 1 callers
Function
get_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 callers
Function
get_kwargs
(db_name)
experiments/GNN/ERGCN.py:16
↓ 1 callers
Function
get_kwargs
(db_name, space)
experiments/GNN/ERGCN_hp.py:23
↓ 1 callers
Function
get_kwargs
(db_name)
experiments/GNN/GAT.py:13
↓ 1 callers
Function
get_kwargs
(db_name)
experiments/GNN/HAN.py:13
↓ 1 callers
Function
get_kwargs
(db_name, space)
experiments/GNN/ERGAT_hp.py:23
↓ 1 callers
Function
get_kwargs
(db_name)
experiments/GNN/ERGIN.py:15
↓ 1 callers
Function
get_kwargs
(db_name, space)
experiments/GNN/GAT_hp.py:24
↓ 1 callers
Function
get_kwargs
(db_name)
experiments/GNN/ERGAT.py:16
↓ 1 callers
Function
get_kwargs
(db_name)
experiments/GNN/GCN.py:17
↓ 1 callers
Function
get_kwargs
(ds_name)
experiments/tabular/TabMLP.py:14
↓ 1 callers
Function
get_kwargs
(ds_name)
experiments/tabular/TabLogReg.py:13
↓ 1 callers
Method
get_origin_data_dict
(self)
data/DatabaseDataset.py:83
↓ 1 callers
Method
gnn_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 callers
Method
init_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 callers
Method
init_loss_fxn
(self)
models/tabular/TabModelBase.py:54
↓ 1 callers
Function
main
(kwargs)
start_training.py:285
↓ 1 callers
Function
main
(kwargs)
start_evaluating.py:192
↓ 1 callers
Function
one_hot
(x, card)
data/data_encoders.py:545
↓ 1 callers
Method
override_model_forward
(self, model)
models/losses.py:77
↓ 1 callers
Method
override_model_forward
(self, model)
models/losses.py:139
↓ 1 callers
Method
override_model_forward
(self, model)
models/losses.py:199
↓ 1 callers
Function
populate_db_info
(db_name, db_info)
data/utils.py:23
↓ 1 callers
Function
rec_val_generator
(generator)
data/utils.py:74
↓ 1 callers
Function
register_module_hooks
(module_name, module, writer, dump_values=False)
models/utils.py:69
↓ 1 callers
Method
reset_parameters
(self)
models/utils.py:190
↓ 1 callers
Function
save_train_kwargs
(writer, train_kwargs)
models/utils.py:25
↓ 1 callers
Function
set_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 callers
Function
setup_writer
(log_dir, debug_network)
utils.py:29
↓ 1 callers
Function
start_evaluating
( do_evaluate, do_dump_activations, module_acts_to_dump, model_logdir,
start_evaluating.py:126
↓ 1 callers
Function
test_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 callers
Function
train_epoch
(writer, train_loader, model, optimizer, scheduler, epoch)
start_training.py:36
↓ 1 callers
Function
train_model
( writer, seed, log_dir, debug_network, dataset_name, train_te
start_training.py:103
↓ 1 callers
Function
truncate_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 callers
Function
write_kaggle_submission_file
predictions should be pandas dataframe with columns ['dp_id', 'prob']
data/utils.py:269
Function
DGL_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