All Projects → yikaiw → NRL-implement

yikaiw / NRL-implement

Licence: other
Implementation of some network representation methods including DeepWalk, LINE, node2vec and GraphGAN (In TensorFlow)

Programming Languages

python
139335 projects - #7 most used programming language

NRL-implement

Re-implementation of four Network representation learning (NRL) algorithms: DeepWalk, LINE, node2vec, GraphGAN.

Environment

  • NumPy
  • TensorFlow
  • gensim
  • NetworkX

Data

There are two datasets located in the path ./data/:

Training

First, locate at the root path of the project:

cd NRL-implement

For DeepWalk:

python DeepWalk/main.py

For LINE:

python LINE/main.py

For node2vec:

python node2vec/main.py

These three implementations use cora as dataset, and results are saved in ./results/cora/.

Use logistic regression as classifier to evaluate the quality of embeddings produced by these three implementations.

python LRclassifier.py --method DeepWalk

where DeepWalk can be replaced by LINE and node2vec.

For GraphGAN:

python GraphGAN/main.py

which uses tencent as dataset.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].