Skip to content

PyTorch Implementation of Prompt-augmented Temporal Point Process for Streaming Event Sequence, NeurIPS 2023

License

Notifications You must be signed in to change notification settings

yanyanSann/PromptTPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PromptTPP

Pytorch implementation for Prompt-augmented Temporal Point Process for Streaming Event Sequence, NeurIPS 2023.

How to Run

Environment Requirements

First, please make sure you have an environment compatible with the following requirement

torch == 1.11.0
numpy
pandas

Lower version of pytorch should also be working but we have not tested it.

Training and Evaluation Example

Assume we are running PT-attNHP over the Amazon data and setup the config files.

Step 1: We need to configure the parameter file corresponding to the dataset

vim dataset_config.yaml

NOTE: in example_config/dataset_config.yaml, one needs to setup information of the dataset, where we have put the default params of Amazon there.

Step 2: we need to choose the TPP model and configure the parameter file corresponding to the model

vim model_config.yaml

NOTE: in example_config/model_config.yaml, one needs to setup information of the model specs, where we have put the default params of PT-attNHP there.

Step 3: Then we train the chosen TPP model and evaluate

python run_pt_anhp.py

Citing

If you find this repository useful for your work, please consider citing it as follows:

@inproceedings{xue2023prompt,
  title={Prompt-augmented Temporal Point Process for Streaming Event Sequence},
  author={Xue, Siqiao and Wang, Yan and Chu, Zhixuan and Shi, Xiaoming and Jiang, Caigao and Hao, Hongyan and Jiang, Gangwei and Feng, Xiaoyun and Zhang, James Y and Zhou, Jun},
  booktitle={Advances in Neural Information Processing Systems},
  year={2023},
  url={https://arxiv.org/abs/2310.04993}
}

Credits

The following repositories are used in our code, either in close to original form or as an inspiration:

About

PyTorch Implementation of Prompt-augmented Temporal Point Process for Streaming Event Sequence, NeurIPS 2023

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages