• Stars
    star
    201
  • Rank 194,491 (Top 4 %)
  • Language
    Python
  • Created about 7 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

TensorFlow implementation of paper "LINE: Large-scale Information Network Embedding" by Jian Tang, et al.

LINE in TensorFlow

TensorFlow implementation of paper LINE: Large-scale Information Network Embedding by Jian Tang, et al.

You can see my slide on GDG DevFest 2017 for more detail about LINE and TensorFlow. Notice: code shown in the slide are pseudocode, minibatch and negative sampling are omitted in the slide.

Prerequisites

  • Python 3.6
  • TensorFlow 1.3.0
  • Networkx
  • NumPy

Setup

  • Prepare a network using networkx. Write the graph to a file by nx.write_gpickle.
  • Put the network file in data folder.
  • Run line.py --graph_file graph.pkl to start training. graph.pkl is the name of your network file.
  • Embedding will be stored in data/embedding_XXX-order.pkl. You can load it by pickle.load() in python.

References

More Repositories

1

tensorflow-handbook

įŽ€å•į˛—æš´ TensorFlow 2 | A Concise Handbook of TensorFlow 2 | 一æœŦįŽ€æ˜Žįš„ TensorFlow 2 å…Ĩ门指å¯ŧ教į¨‹
Jupyter Notebook
3,943
star
2

TensorFlow-cn

įŽ€å•į˛—æš´ TensorFlow (1.X) | A Concise Handbook of TensorFlow (1.X) | æ­¤į‰ˆæœŦ不再更新īŧŒæ–°į‰ˆč§ https://tf.wiki
Python
852
star
3

ntm

TensorFlow implementation of Neural Turing Machines (NTM), with its application on one-shot learning (MANN)
Python
179
star
4

rnn-handwriting-generation

Handwriting generation by RNN with TensorFlow, based on "Generating Sequences With Recurrent Neural Networks" by Alex Graves
Python
98
star
5

rnn-vae

Variational Autoencoder with Recurrent Neural Network based on Google DeepMind's "DRAW: A Recurrent Neural Network For Image Generation"
Python
40
star
6

gnn

TensorFlow implementation of several popular Graph Neural Network layers, wrapped with tf.keras.layers.Layer.
Python
19
star
7

snowkylin.github.io

é›Ēéē’įš„į™žč‰å›­ - Snowkylin's Blog
HTML
13
star
8

data-mining-pku

Instruction of assignment in course "Data Warehousing and Data Mining Technology", Spring and Summer Semester, 2017.
TeX
7
star
9

nncf

TensorFlow implementation of paper "On Sampling Strategies for Neural Network-based Collaborative Filtering" by Chen, Ting, et al.
Python
6
star
10

lemon-public-license

🍋🍋🍋
5
star
11

async_rl

Tensorflow implementation of asyncronous 1-step Q learning in "Asynchronous Methods for Deep Reinforcement Learning" with improvement on weight update process (use minibatch) to speed up training.
Python
4
star
12

baidu-statistics

A simple Python 3 project to give some statistics information about Baidu Search Engine, especially Baijiahao.
Python
3
star
13

rl-flappybird

Using deep reinforcement learning to play flappy bird. Implemented by TensorFlow.
Python
2
star
14

lp-algorithm

A minimized implementation of several popular algorithms for linear programming (Simplex, Interior-Point)
Python
1
star
15

restructuredtext-shortcut

reStructuredText Shortcut Support for Visual Studio Code
TypeScript
1
star