Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OneForward/UniGNN
/ functions
Functions
45 in github.com/OneForward/UniGNN
⨍
Functions
45
◇
Types & classes
11
↓ 8 callers
Function
accuracy
(Z, Y)
prepare.py:6
↓ 8 callers
Function
get_logger
(name, flog_name, stdout=True)
logger.py:3
↓ 7 callers
Method
__init__
UniGNN Args: args (NamedTuple): global args nfeat (int): dimension of features nhid (int): dimension
model/UniGNN.py:298
↓ 6 callers
Function
normalize_l2
Row-normalize matrix
model/UniGNN.py:18
↓ 3 callers
Method
backward
(ctx, g)
model/HyperGCN.py:115
↓ 3 callers
Function
fetch_data
(args)
prepare.py:13
↓ 3 callers
Function
initialise
initialises model, optimiser, normalises graph, and features arguments: X, Y, G: the entire dataset (with graph, features, labels)
prepare.py:31
↓ 2 callers
Function
Laplacian
approximates the E defined by the E Laplacian with/without mediators arguments: V: number of vertices E: dictionary of hyperedges (k
model/HyperGCN.py:129
↓ 2 callers
Function
glorot
(tensor)
model/UniGNN.py:13
↓ 1 callers
Method
__init__
d: initial node-feature dimension h: number of hidden units c: number of classes
model/HyperGCN.py:10
↓ 1 callers
Function
adjacency
computes an sparse adjacency matrix arguments: edges: list of pairs weights: dictionary of edge weights (key: tuple representing edg
model/HyperGCN.py:215
↓ 1 callers
Function
get_split
(Y, p=0.2)
train_val.py:65
↓ 1 callers
Function
get_split
(Y, p=0.2)
train_evolving.py:66
↓ 1 callers
Function
normalise
row-normalise sparse matrix arguments: M: scipy sparse matrix returns: D^{-1} M where D is the diagonal node-degree matri
prepare.py:123
↓ 1 callers
Method
reset_parameters
(self)
model/UniGNN.py:242
↓ 1 callers
Method
reset_parameters
(self)
model/HyperGCN.py:71
↓ 1 callers
Function
ssm2tst
converts a scipy sparse matrix (ssm) to a torch sparse tensor (tst) arguments: M: scipy sparse matrix returns: a torch sparse t
model/HyperGCN.py:268
↓ 1 callers
Function
symnormalise
symmetrically normalise sparse matrix arguments: M: scipy sparse matrix returns: D^{-1/2} M D^{-1/2} where D is the diagon
model/HyperGCN.py:246
↓ 1 callers
Function
update
updates the weight on {Se,mediator} and {Ie,mediator}
model/HyperGCN.py:190
Method
__init__
(self, args, in_channels, out_channels, heads=8, dropout=0., negative_slope=0.2)
model/UniGNN.py:31
Method
__init__
(self, args, in_channels, out_channels, heads=8, dropout=0., negative_slope=0.2)
model/UniGNN.py:76
Method
__init__
(self, args, in_channels, out_channels, heads=8, dropout=0., negative_slope=0.2)
model/UniGNN.py:124
Method
__init__
(self, args, in_channels, out_channels, heads=8, dropout=0., negative_slope=0.2)
model/UniGNN.py:172
Method
__init__
(self, args, in_channels, out_channels, heads=8, dropout=0., negative_slope=0.2, skip_sum=False)
model/UniGNN.py:222
Method
__init__
(self, args, in_features, out_features)
model/UniGNN.py:340
Method
__init__
UniGNNII Args: args (NamedTuple): global args nfeat (int): dimension of features nhid (int): dimensi
model/UniGNN.py:375
Method
__init__
(self, a, b, reapproximate=True, cuda=True)
model/HyperGCN.py:60
Method
__repr__
(self)
model/UniGNN.py:43
Method
__repr__
(self)
model/UniGNN.py:88
Method
__repr__
(self)
model/UniGNN.py:134
Method
__repr__
(self)
model/UniGNN.py:182
Method
__repr__
(self)
model/UniGNN.py:237
Method
__repr__
(self)
model/HyperGCN.py:95
Method
forward
(self, X, vertex, edges)
model/UniGNN.py:48
Method
forward
(self, X, vertex, edges)
model/UniGNN.py:94
Method
forward
(self, X, vertex, edges)
model/UniGNN.py:139
Method
forward
(self, X, vertex, edges)
model/UniGNN.py:187
Method
forward
(self, X, vertex, edges)
model/UniGNN.py:246
Method
forward
(self, X)
model/UniGNN.py:325
Method
forward
(self, X, vertex, edges, alpha, beta, X0)
model/UniGNN.py:346
Method
forward
(self, x)
model/UniGNN.py:406
Method
forward
an l-layer GCN
model/HyperGCN.py:41
Method
forward
(self, structure, H, m=True)
model/HyperGCN.py:78
Method
forward
(ctx, M1, M2)
model/HyperGCN.py:110
Function
parse
()
config.py:4