MCPcopy Create free account

hub / github.com/chengsen/PyTorch_TextGCN / functions

Functions61 in github.com/chengsen/PyTorch_TextGCN

↓ 3 callersFunctionprint_graph_detail
格式化显示Graph参数 :param graph: :return:
utils.py:92
↓ 2 callersMethodclean_str
(self, string)
data_processor.py:20
↓ 2 callersMethodforward
(self, x, adj)
layer.py:51
↓ 2 callersMethodlog
(self, result: dict)
utils.py:222
↓ 2 callersMethodremove_stopword
(self, string)
data_processor.py:67
↓ 2 callersMethodsave
(self)
build_graph.py:177
↓ 2 callersMethodval
(self, x, prefix="val")
trainer.py:184
↓ 1 callersMethod__init__
(self, nfeat, nhid, nclass, dropout)
layer.py:45
↓ 1 callersFunctionaccuracy
(pred, targ)
utils.py:43
↓ 1 callersFunctioncal_pmi
(W_ij, W, word_freq_1, word_freq_2)
build_graph.py:54
↓ 1 callersMethodclean_text
(self)
data_processor.py:112
↓ 1 callersMethodconvert_tensor
(self)
trainer.py:152
↓ 1 callersFunctioncount_pmi
(windows_len, word_pair_count, word_window_freq, threshold)
build_graph.py:63
↓ 1 callersMethodfit
(self)
trainer.py:109
↓ 1 callersFunctionget_pmi_edge
(content_lst, window_size=20, threshold=0.)
build_graph.py:76
↓ 1 callersMethodget_pmi_edge
(self)
build_graph.py:110
↓ 1 callersMethodget_tfidf_edge
(self)
build_graph.py:123
↓ 1 callersMethodget_tfidf_vec
学习获得tfidf矩阵,及其对应的单词序列 :param content_lst: :return:
build_graph.py:139
↓ 1 callersFunctionget_train_test
(target_fn)
trainer.py:28
↓ 1 callersFunctionget_window
找出窗口 :param content_lst: :param window_size: :return:
build_graph.py:19
↓ 1 callersMethodgpu_mem_get
get total, used and free memory (in MBs) for gpu `id`. if `id` is not passed, currently selected torch device is used
utils.py:69
↓ 1 callersMethodgpu_mem_get_all
get total, used and free memory (in MBs) for each available gpu
utils.py:65
↓ 1 callersMethodlog_single
(self, key, value)
utils.py:226
↓ 1 callersFunctionmacro_f1
(pred, targ, num_classes=None)
utils.py:10
↓ 1 callersFunctionmain
()
build_graph.py:185
↓ 1 callersFunctionmain
()
data_processor.py:152
↓ 1 callersFunctionmain
(dataset, times)
trainer.py:214
↓ 1 callersFunctionnormalize_adj
Symmetrically normalize adjacency matrix.
utils.py:144
↓ 1 callersFunctionparameter_parser
A method to parse up command line parameters. By default it trains on the PubMed yelp_dataset. The default hyperparameters give a good qualit
utils.py:207
↓ 1 callersMethodprepare_data
(self)
trainer.py:139
↓ 1 callersFunctionpreprocess_adj
Preprocessing of adjacency matrix for simple pygGCN model and conversion to tuple representation.
utils.py:123
↓ 1 callersFunctionprint_table
(dst)
utils.py:107
↓ 1 callersFunctionread_file
(path, mode='r', encoding=None)
utils.py:86
↓ 1 callersFunctionremove_less_word
(lines_str, word_st)
data_processor.py:93
↓ 1 callersMethodreset_parameters
(self)
layer.py:24
↓ 1 callersFunctionreturn_seed
(nums=10)
utils.py:117
↓ 1 callersMethodset_description
(cls, desc)
trainer.py:130
↓ 1 callersMethodset_seed
(self)
trainer.py:105
↓ 1 callersMethodshow_str
(self)
utils.py:229
↓ 1 callersFunctionsparse_mx_to_torch_sparse_tensor
Convert a scipy sparse matrix to a torch sparse tensor.
utils.py:134
↓ 1 callersMethodtest
(self)
trainer.py:206
↓ 1 callersMethodtrain
(self)
trainer.py:160
Method__call__
(self, val_loss, model=None)
utils.py:176
Method__init__
(self, dataset)
build_graph.py:92
Method__init__
(self)
data_processor.py:11
Method__init__
(self, dataset, encoding=None)
data_processor.py:98
Method__init__
(self)
utils.py:51
Method__init__
Args: patience (int): How long to wait after last time validation loss improved. Default: 7
utils.py:157
Method__init__
(self)
utils.py:218
Method__init__
(self, in_features, out_features, bias=True)
layer.py:13
Method__init__
(self, args)
trainer.py:42
Method__init__
(self, args, model, pre_data)
trainer.py:93
Method__repr__
(self)
layer.py:38
Methodforward
(self, infeatn, adj)
layer.py:30
Methodget_cuda_id
(self)
utils.py:57
Methodlean_str_sst
Tokenization/string cleaning for the SST yelp_dataset Original taken from https://github.com/yoonkim/CNN_sentence/blob/master
data_processor.py:58
Methodload_model
(self)
utils.py:203
Methodnorm_str
(self, string)
data_processor.py:37
Methodreplace_num
(self, string)
data_processor.py:83
Methodreplace_urls
(self, string)
data_processor.py:87
Methodsave_checkpoint
Saves model when validation loss decrease.
utils.py:195