Skip to content

Tensorflow Implementation of Time Dependent Representation of Neural Event Sequence Prediction

License

Notifications You must be signed in to change notification settings

iLampard/time_dependent_rnn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

time_dependent_rnn

In order to practise Tensorflow, I implement the model of Time Dependent Representation of Neural Event Sequence Prediction based on my own understanding.

How to run

Download sample data

Download three pickles from Baidu Disk with password fn40 and put them under tdrnn/data/data_so.

tdrnn
 |__ data
       |__ data_so
            |__ valid.pkl
            |__ test.pkl
            |__ train.pkl

Please be noted that these data is preprocessed by my own and not exactly the same one used in the paper.

Run the training and prediction pipeline

Suppose we want to run 200 epochs and use Tensorboard to visualize the process

cd tdrnn
python main.py --write_summary True --max_epoch 200

To check the description of all flags

python main.py -helpful

To open tensorboard

tensorboard --logdir=path

where the path can be found in the log which shows the relative dir to save the model, e.g. logs/data_so/ModelWrapper/lr-0.01_dim-64_drop-0.0/20200201-011244 /saved_model/tfb_dir/.

and then open the browser

Requirement

tensorflow==1.13.1

About

Tensorflow Implementation of Time Dependent Representation of Neural Event Sequence Prediction

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages