Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benedekrozemberczki/TADW
/ functions
Functions
24 in github.com/benedekrozemberczki/TADW
⨍
Functions
24
◇
Types & classes
3
↓ 2 callers
Method
calculate_loss
Loss calculation method.
src/tadw.py:46
↓ 1 callers
Method
compile_embedding
Method to create embedding using W, H, T and the node ids.
src/tadw.py:72
↓ 1 callers
Method
init_weights
Initialization of weights and loss container.
src/tadw.py:26
↓ 1 callers
Function
learn_model
Method to create adjacency matrix powers, read features, and learn embedding. :param args: Arguments object.
src/main.py:7
↓ 1 callers
Method
loss_printer
Function to print the losses in a nice tabular format.
src/tadw.py:52
↓ 1 callers
Function
normalize_adjacency
Method to calculate a sparse degree normalized adjacency matrix. :param graph: Sparse graph adjacency matrix. :return A: Normalized adjac
src/helpers.py:72
↓ 1 callers
Method
optimize
Gradient descent updates for a given number of iterations.
src/tadw.py:61
↓ 1 callers
Function
parameter_parser
A method to parse up command line parameters. By default it gives an embedding of the Wiki Chameleons. The default hyperparameters give a goo
src/helpers.py:12
↓ 1 callers
Function
read_features
Method to get dense node feaures. :param feature_path: Path to the node features. :return features: Node features.
src/helpers.py:110
↓ 1 callers
Function
read_graph
Method to read graph and create a target matrix by summing adjacency matrix powers. :param edge_path: Path to the ege list. :param order:
src/helpers.py:90
↓ 1 callers
Function
read_sparse_features
Method to get sparse node feaures. :param feature_path: Path to the node features. :return features: Node features.
src/helpers.py:120
↓ 1 callers
Method
save_embedding
Saving the embedding on disk.
src/tadw.py:78
↓ 1 callers
Function
tab_printer
Function to print the logs in a nice tabular format. :param args: Parameters used for the model.
src/helpers.py:140
↓ 1 callers
Method
update_H
Feature embedding matrix update method.
src/tadw.py:40
↓ 1 callers
Method
update_W
Node emebdding matrix update method.
src/tadw.py:34
Method
__init__
Setting up the target matrices and arguments. Weights are initialized. :param A: Proximity matrix. :param T: Text data
src/tadw.py:14
Method
calculate_loss
Calculating the losses in a given iteration. :param iteration: Iteration round number.
src/tadw.py:113
Method
calculate_loss
Calculating the losses in a given iteration. :param iteration: Iteration round number.
src/tadw.py:153
Method
compile_embedding
Saving the embedding on disk.
src/tadw.py:124
Method
compile_embedding
Saving the embedding on disk.
src/tadw.py:163
Method
update_H
A single update of the feature basis matrix.
src/tadw.py:103
Method
update_H
A single update of the feature basis matrix.
src/tadw.py:144
Method
update_W
A single update of the node embedding matrix.
src/tadw.py:94
Method
update_W
A single update of the node embedding matrix.
src/tadw.py:135