MCPcopy Create free account

hub / github.com/JhuoW/ERIC / functions

Functions241 in github.com/JhuoW/ERIC

↓ 1 callersMethodinit_parameters
Initializing weights.
model/layers.py:75
↓ 1 callersMethodinit_parameters
(self)
model/layers.py:134
↓ 1 callersMethodinit_parameters
(self)
model/layers.py:185
↓ 1 callersMethodinput_dim
(self)
DataHelper/simgnn_utils.py:150
↓ 1 callersFunctionlast_len
length of last line
utils/logger.py:20
↓ 1 callersFunctionlen_ignore_n
len(s) ignoring \\n
utils/logger.py:9
↓ 1 callersFunctionload
(filepath)
DataHelper/simgnn_utils.py:266
↓ 1 callersMethodload_custom_data
(self, config, args)
DataHelper/DatasetLocal.py:132
↓ 1 callersFunctionload_model_all
(dataset, model, loss_func, model_paths, T)
utils/utils.py:308
↓ 1 callersFunctionlog_sum_exp
Log sum exp function Args: x: Input. axis: Axis over which to perform sum. Returns: torch.Tensor: log sum exp
utils/misc.py:8
↓ 1 callersMethodm_n
(self)
DataHelper/simgnn_utils.py:371
↓ 1 callersFunctionmain
(args, config, logger: Logger, run_id: int, dataset: DatasetLocal)
main.py:16
↓ 1 callersFunctionmy_clock
basically time.clock()
utils/logger.py:5
↓ 1 callersFunctionplot_embeddings_for_each_query
(embs, ids, plt_cnt,ground_truth_nged, sort_id_mat_normed, extra_dir, plot_
exp/exp.py:184
↓ 1 callersMethodpre_process
(self , content)
utils/logger.py:63
↓ 1 callersFunctionprint_config
(config)
utils/utils.py:118
↓ 1 callersFunctionprint_evaluation
Printing the error rates.
test.py:110
↓ 1 callersFunctionprint_evaluation
Printing the error rates.
test_linux.py:112
↓ 1 callersFunctionprint_evaluation
Printing the error rates.
test_imdb.py:113
↓ 1 callersFunctionranking
(qid, gid, sort_id_mat_normed, ground_truth_nged, one_based=True)
exp/exp.py:260
↓ 1 callersMethodranking
:param qid: query id (0-indexed). :param gid: database graph id (0-indexed) (NOT g.graph['gid']). :param norm: :param
DataHelper/simgnn_utils.py:432
↓ 1 callersFunctionsave_best_val_model
(config, dataset_name, model, PATH_MODEL)
utils/utils.py:240
↓ 1 callersFunctionsave_best_val_model_all
current_metric: [rho, tau, p10, p20]
utils/utils.py:269
↓ 1 callersFunctionsave_model
(config, dataset_name, model)
utils/utils.py:223
↓ 1 callersFunctionsave_pkl
(obj, handle)
DataHelper/simgnn_utils.py:323
↓ 1 callersMethodscale_init
(self)
model/GSC.py:139
↓ 1 callersFunctionset_random_seed
(seed)
utils/random_seeder.py:5
↓ 1 callersFunctionset_save_paths_for_vis
(info_dict, extra_dir, fn, plt_cnt)
exp/exp.py:475
↓ 1 callersMethodsetup_layers
Creating the layers.
model/SImGNN.py:35
↓ 1 callersMethodsetup_layers
(self)
model/GSC.py:26
↓ 1 callersMethodsetup_layers
(self)
model/Base/GSC_custom.py:18
↓ 1 callersMethodsetup_score_layer
(self)
model/GSC.py:117
↓ 1 callersMethodsetup_score_layer
(self)
model/Base/GSC_custom.py:100
↓ 1 callersMethodsetup_weights
Defining weights.
model/layers.py:67
↓ 1 callersMethodsetup_weights
(self)
model/layers.py:115
↓ 1 callersMethodsetup_weights
(self)
model/layers.py:173
↓ 1 callersFunctionsorted_nicely
(l)
DataHelper/simgnn_utils.py:225
↓ 1 callersFunctiontry_int
(s)
DataHelper/simgnn_utils.py:226
↓ 1 callersFunctionunnormalized_dist_sim
(d, g1, g2)
exp/exp.py:89
↓ 1 callersFunctionvis_small
(q=None, gs=None, info_dict=None, types = None)
utils/vis.py:35
Method__init__
(self , mode = [print] , log_path = None , append = ["clock"] , line_length = 90)
utils/logger.py:29
Method__init__
(self, args, config, logger)
training_procedure/__init__.py:11
Method__init__
(self, nfeat, nhid, nclass, num_layers = 2 ,use_bn=True)
model/layers.py:9
Method__init__
(self, n_in, n_hid, n_out, num_layers = 2 ,use_bn=True, act = 'relu')
model/layers.py:32
Method__init__
:param args: Arguments object.
model/layers.py:58
Method__init__
:param args: Arguments object.
model/layers.py:105
Method__init__
(self, config, filters)
model/layers.py:165
Method__init__
:param args: Arguments object. :param number_of_labels: Number of node labels.
model/SImGNN.py:16
Method__init__
(self, n_in, n_hid, n_out, num_layers = 2 ,use_bn=True)
model/MLP.py:31
Method__init__
(self, config, embedding_dim)
model/GSC.py:269
Method__init__
(self,config, hid_channels, in_channels, out_channels)
model/Base/GAT.py:6
Method__init__
(self, config, in_dim)
model/Base/GSC_custom.py:195
Method__init__
(self,config, hidden_channels, num_features, num_classes)
model/Base/GCN.py:12
Method__init__
(self, dName=None, dDescription=None)
DataHelper/DatasetLocal.py:21
Method__init__
(self, dName=None, dDescription=None)
DataHelper/dataset_helper.py:23
Method__init__
(self, li)
DataHelper/simgnn_utils.py:17
Method__init__
(self, save_folder, train_or_test)
DataHelper/simgnn_utils.py:54
Method__init__
(self, save_folder, train_or_test)
DataHelper/simgnn_utils.py:87
Method__init__
(self, data_save_folder, data_set_name, validation_ratio, node_feat_name, node_encoder_name)
DataHelper/simgnn_utils.py:114
Method__init__
(self, gs, node_feat_name)
DataHelper/simgnn_utils.py:187
Method__init__
(self, _, node_feat_name=None, node_encoder_name='constant_1_2')
DataHelper/simgnn_utils.py:210
Method__init__
(self, root_folder, data_name)
DataHelper/simgnn_utils.py:335
Method__init__
(self, dataset, model, result_folder, dist_mat, row_graphs, col_graphs, scale)
DataHelper/simgnn_utils.py:498
Method__init__
(self, ged_main_dir, config)
DataHelper/CustomDataset.py:15
Functionaccuracy
(output, labels)
utils/utils.py:78
Functionalphanum_key
(s)
DataHelper/simgnn_utils.py:232
Methodclassification_mat
(self, thresh_pos, thresh_neg, thresh_pos_sim, thresh_neg_sim, norm)
DataHelper/simgnn_utils.py:459
Functioncomputing_precision_ks
(trues, predictions, ks, inclusive=True, rm=0)
DataHelper/simgnn_utils.py:293
Functioncopy_unnormalized_sim_mat
(sim_mat, testing_graphs, trainval_graphs)
exp/exp.py:81
Methoddist_metric
(self)
DataHelper/simgnn_utils.py:613
Methoddist_or_sim
(self)
DataHelper/simgnn_utils.py:374
Methoddist_or_sim
(self)
DataHelper/simgnn_utils.py:529
Methoddist_sim
:param qid: query id (0-indexed). :param gid: database graph id (0-indexed) (NOT g.graph['gid']). :param norm: :retur
DataHelper/simgnn_utils.py:386
Methoddist_sim
(self, qid, gid, norm)
DataHelper/simgnn_utils.py:532
Methoddist_sim_mat
(self, norm)
DataHelper/simgnn_utils.py:526
Functiondraw_emb_hist_heat
(args, testing_graphs, trainval_graphs, model: GSC, extra_dir=None, plot_max_num=np.inf)
exp/exp.py:95
Functiondraw_ranking
(args, testing_graphs, trainval_graphs, pred_mat , pred_mat_unexp, existing_mappings = None, plot_gids=False,
exp/exp.py:480
Functionedge_index_to_torch_sparse_tensor
(edge_index, edge_weight = None)
utils/utils.py:135
Methodencode
(self, g)
DataHelper/simgnn_utils.py:196
Methodencode
(self, g)
DataHelper/simgnn_utils.py:217
Functionevaluate
(self, testing_graphs, training_graphs, model, loss_func, dataset: DatasetLocal, validation = False)
training_procedure/evaluate.py:29
Functionevaluate
(testing_graphs, training_graphs, model, dataset: DatasetLocal, config)
exp/exp.py:29
Methodextract_test_matrices
(self, row)
DataHelper/CustomDataset.py:41
Functionformat_ds
(ds)
exp/exp.py:464
Methodforward
(self, x)
model/layers.py:27
Methodforward
(self,x)
model/layers.py:49
Methodforward
Making a forward propagation pass to create a graph level representation. :param x: Result of the GNN. :param size: Dimension
model/layers.py:81
Methodforward
(self, x, batch, size=None)
model/layers.py:137
Methodforward
(self, embedding_1, embedding_2)
model/layers.py:191
Methodforward
(self, x)
model/layers.py:224
Methodforward
Forward pass with graphs. :param data: Data dictionary. :return score: Similarity score.
model/SImGNN.py:149
Methodforward
(self, x)
model/MLP.py:26
Methodforward
(self,x)
model/MLP.py:48
Methodforward
(self,data)
model/GSC.py:182
Methodforward
(self, batch_1, batch_2, z1, z2, g1 = None, g2 = None)
model/GSC.py:290
Methodforward
(self, x, edge_index)
model/Base/GAT.py:13
Methodforward
(self,data)
model/Base/GSC_custom.py:131
Methodforward
(self, score_vec)
model/Base/GSC_custom.py:199
Methodforward
(self, x, edge_index)
model/Base/GCN.py:25
Methodgenerate_all_val_gs
(self, config)
DataHelper/DatasetLocal.py:209
← previousnext →101–200 of 241, ranked by callers