MCPcopy Create free account

hub / github.com/benedekrozemberczki/TADW / functions

Functions24 in github.com/benedekrozemberczki/TADW

↓ 2 callersMethodcalculate_loss
Loss calculation method.
src/tadw.py:46
↓ 1 callersMethodcompile_embedding
Method to create embedding using W, H, T and the node ids.
src/tadw.py:72
↓ 1 callersMethodinit_weights
Initialization of weights and loss container.
src/tadw.py:26
↓ 1 callersFunctionlearn_model
Method to create adjacency matrix powers, read features, and learn embedding. :param args: Arguments object.
src/main.py:7
↓ 1 callersMethodloss_printer
Function to print the losses in a nice tabular format.
src/tadw.py:52
↓ 1 callersFunctionnormalize_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 callersMethodoptimize
Gradient descent updates for a given number of iterations.
src/tadw.py:61
↓ 1 callersFunctionparameter_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 callersFunctionread_features
Method to get dense node feaures. :param feature_path: Path to the node features. :return features: Node features.
src/helpers.py:110
↓ 1 callersFunctionread_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 callersFunctionread_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 callersMethodsave_embedding
Saving the embedding on disk.
src/tadw.py:78
↓ 1 callersFunctiontab_printer
Function to print the logs in a nice tabular format. :param args: Parameters used for the model.
src/helpers.py:140
↓ 1 callersMethodupdate_H
Feature embedding matrix update method.
src/tadw.py:40
↓ 1 callersMethodupdate_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
Methodcalculate_loss
Calculating the losses in a given iteration. :param iteration: Iteration round number.
src/tadw.py:113
Methodcalculate_loss
Calculating the losses in a given iteration. :param iteration: Iteration round number.
src/tadw.py:153
Methodcompile_embedding
Saving the embedding on disk.
src/tadw.py:124
Methodcompile_embedding
Saving the embedding on disk.
src/tadw.py:163
Methodupdate_H
A single update of the feature basis matrix.
src/tadw.py:103
Methodupdate_H
A single update of the feature basis matrix.
src/tadw.py:144
Methodupdate_W
A single update of the node embedding matrix.
src/tadw.py:94
Methodupdate_W
A single update of the node embedding matrix.
src/tadw.py:135