Source code of The Neural Hawkes Process
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

The Neural Hawkes Process

Source code for The Neural Hawkes Process (NIPS 2017) runnable on GPU and CPU.


If you use this code as part of any published research, please acknowledge the following paper (it encourages researchers who publish their code!):

The Neural Hawkes Process: A Neurally Self-Modulating Multivariate Point Process
Hongyuan Mei and Jason Eisner

  author =      {Hongyuan Mei and Jason Eisner},
  title =       {The Neural {H}awkes Process: {A} Neurally Self-Modulating Multivariate Point Process},
  booktitle =   {Advances in Neural Information Processing Systems},
  year =        {2017},
  month =       dec,
  address =     {Long Beach},
  url =         {}


Here are the instructions to use the code base


This code is written in python. To use it you will need:

  • Anaconda - Anaconda includes all the Python-related dependencies
  • Theano - Computational graphs are built on Theano

Prepare Data

Download datasets to the 'data' folder

Train Models

To train the model, try the command line below for detailed guide:

python --help

Test Models

To evaluate (dev or test) and save results, use the command line below for detailed guide:

python --help

Generate Sequences

To generate sequences (with trained or randomly initialized models), try the command line:

python --help

Significant Tests

To test statistical significance by boostrapping over dev/test set, try the command line:

python --help


This project is licensed under the MIT License - see the LICENSE file for details