MCPcopy Create free account

hub / github.com/StatsDLMathsRecomSys/Inductive-representation-learning-on-temporal-graphs / functions

Functions41 in github.com/StatsDLMathsRecomSys/Inductive-representation-learning-on-temporal-graphs

↓ 10 callersMethod__init__
(self, ngh_finder, n_feat, e_feat, attn_mode='prod', use_time='time', agg_method='attn', node
module.py:384
↓ 7 callersMethodtem_conv
(self, src_idx_l, cut_time_l, curr_layers, num_neighbors=20)
module.py:462
↓ 4 callersFunctioneval_one_epoch
(hint, tgan, sampler, src, dst, ts, label)
learn_edge.py:86
↓ 3 callersFunctioneval_epoch
(src_l, dst_l, ts_l, label_l, batch_size, lr_model, tgan, num_layer=NODE_LAYER)
learn_node.py:205
↓ 3 callersMethodget_temporal_neighbor
Params ------ src_idx_l: List[int] cut_time_l: List[float], num_neighbors: int
graph.py:89
↓ 3 callersMethodsample
(self, size)
utils.py:36
↓ 2 callersMethodcontrast
(self, src_idx_l, target_idx_l, background_idx_l, cut_time_l, num_neighbors=20)
module.py:454
↓ 1 callersMethodearly_stop_check
(self, curr_val)
utils.py:16
↓ 1 callersMethodfind_before
Params ------ src_idx: int cut_time: float
graph.py:53
↓ 1 callersMethodforward
(self, src_idx_l, target_idx_l, cut_time_l, num_neighbors=20)
module.py:444
↓ 1 callersMethodinit_off_set
Params ------ adj_list: List[List[int]]
graph.py:23
↓ 1 callersFunctionpreprocess
(data_name)
process.py:5
↓ 1 callersFunctionreindex
(df)
process.py:40
↓ 1 callersFunctionrun
(data_name)
process.py:63
Method__init__
(self, max_round=3, higher_better=True, tolerance=1e-3)
utils.py:5
Method__init__
(self, src_list, dst_list)
utils.py:32
Method__init__
(self, dim, drop=0.3)
learn_node.py:20
Method__init__
Params ------ node_idx_l: List[int] node_ts_l: List[int] off_set_l: List[int], such that node_idx_l[off_set_l
graph.py:5
Method__init__
(self, dim1, dim2, dim3, dim4)
module.py:10
Method__init__
(self, temperature, attn_dropout=0.1)
module.py:30
Method__init__
(self, n_head, d_model, d_k, d_v, dropout=0.1)
module.py:54
Method__init__
(self, n_head, d_model, d_k, d_v, dropout=0.1)
module.py:113
Method__init__
(self, expand_dim, factor=5)
module.py:198
Method__init__
(self, expand_dim, seq_len)
module.py:227
Method__init__
(self, expand_dim)
module.py:240
Method__init__
(self, feat_dim, edge_dim, time_dim)
module.py:252
Method__init__
(self, feat_dim, edge_dim)
module.py:282
Method__init__
args: feat_dim: dim for the node features edge_dim: dim for the temporal edge features time_dim: dim for the ti
module.py:302
Functionexpand_last_dim
(x, num)
module.py:191
Methodfind_k_hop
Sampling the k-hop sub graph
graph.py:134
Methodforward
(self, x)
learn_node.py:28
Methodforward
(self, x1, x2)
module.py:20
Methodforward
(self, q, k, v, mask=None)
module.py:36
Methodforward
(self, q, k, v, mask=None)
module.py:78
Methodforward
(self, q, k, v, mask=None)
module.py:139
Methodforward
(self, ts)
module.py:211
Methodforward
(self, ts)
module.py:232
Methodforward
(self, ts)
module.py:244
Methodforward
(self, src, src_t, seq, seq_t, seq_e, mask)
module.py:268
Methodforward
(self, src, src_t, seq, seq_t, seq_e, mask)
module.py:289
Methodforward
Attention based temporal attention forward pass args: src: float Tensor of shape [B, D] src_t: float Tensor of shape [B, D
module.py:349