Offer Pytorch(1.1.0) implementation
Our data preprocessing and topolstm structure refer to this repositary
python train.py --data_dir '' --max_len 30 --batch_size 256
--data_dir : your data directory
--max_len : max diffusion path lengths
--batch_size : batch_size
--hidden_size : your embedding size
--epochs : training epochs
--learning_rate : optimizer learning rate
python test.py --data_dir ''
--data_dir : your data directory
preprocessing.py : preprocessing model need inputs
model.py : TopoLSTM implementation
train.py : Training TopoLSTM
test.py : Predict our test data
You can get data from following link : data link
@inproceedings{WangZLC17,
author = {Jia Wang and
Vincent W. Zheng and
Zemin Liu and
Kevin Chen-Chuan Chang},
title = {Topological Recurrent Neural Network for Diffusion Prediction},
booktitle = {ICDM},
pages = {475--484},
year = {2017}
}