Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PetarV-/DGI
/ functions
Functions
28 in github.com/PetarV-/DGI
⨍
Functions
28
◇
Types & classes
5
↓ 2 callers
Function
sparse_to_tuple
Convert sparse matrix to tuple representation.
utils/process.py:144
↓ 2 callers
Function
to_tuple
(mx)
utils/process.py:147
↓ 1 callers
Method
embed
(self, seq, adj, sparse, msk)
models/dgi.py:28
↓ 1 callers
Function
normalize_adj
Symmetrically normalize adjacency matrix.
utils/process.py:189
↓ 1 callers
Function
parse_index_file
Parse index file.
utils/process.py:92
↓ 1 callers
Method
weights_init
(self, m)
layers/gcn.py:19
↓ 1 callers
Method
weights_init
(self, m)
layers/discriminator.py:12
↓ 1 callers
Method
weights_init
(self, m)
models/logreg.py:13
Method
__init__
(self, in_ft, out_ft, act, bias=True)
layers/gcn.py:5
Method
__init__
(self)
layers/readout.py:7
Method
__init__
(self, n_h)
layers/discriminator.py:5
Method
__init__
(self, n_in, n_h, activation)
models/dgi.py:6
Method
__init__
(self, ft_in, nb_classes)
models/logreg.py:6
Function
adj_to_bias
(adj, sizes, nhood=1)
utils/process.py:74
Method
forward
(self, seq, adj, sparse=False)
layers/gcn.py:26
Method
forward
(self, seq, msk)
layers/readout.py:10
Method
forward
(self, c, h_pl, h_mi, s_bias1=None, s_bias2=None)
layers/discriminator.py:18
Method
forward
(self, seq1, seq2, adj, sparse, msk, samp_bias1, samp_bias2)
models/dgi.py:15
Method
forward
(self, seq)
models/logreg.py:19
Function
load_data
Load data.
utils/process.py:105
Function
micro_f1
(logits, labels)
utils/process.py:48
Function
parse_skipgram
(fname)
utils/process.py:10
Function
preprocess_adj
Preprocessing of adjacency matrix for simple GCN model and conversion to tuple representation.
utils/process.py:199
Function
preprocess_features
Row-normalize feature matrix and convert to tuple representation
utils/process.py:180
Function
process_tu
(data, nb_nodes)
utils/process.py:27
Function
sample_mask
Create mask.
utils/process.py:99
Function
sparse_mx_to_torch_sparse_tensor
Convert a scipy sparse matrix to a torch sparse tensor.
utils/process.py:204
Function
standardize_data
Standardize feature matrix and convert to tuple representation
utils/process.py:168