DNNTSP
codes of DNNTSP model for Temporal Sets Prediction
Install / Use
/learn @yule-BUAA/DNNTSPREADME
Predicting Temporal Sets with Deep Neural Networks (DNNTSP)
DNNTSP is a general neural network architecture that could make prediction on temporal sets.
Please refer to our KDD 2020 paper “Predicting Temporal Sets with Deep Neural Networks” for more details.
Project Structure
The descriptions of principal files in this project are explained as follows:
- ./model/
weighted_graph_conv.py: codes for the Element Relationship Learning component (i.e. weighted GCN on dynamic graphs)masked_self_attention.pyandaggregate_nodes_temporal_feature.py: codes for the Attention-based Temporal Dependency Learning component (i.e. masked self-attention and weighted aggregation of temporal information)global_gated_update.py: codes for the Gated Information Fusing component (i.e. gated updating mechanism)
- ./train/
train_model.pyandtrain_main.py: codes for training models
- ./test/
testing_model.py: codes for evaluating models
- ./utils/: containing useful files that are required in the project (e.g. data loader, metrics calculation, loss function, configurations)
- ./data/: processed datasets are under in this folder. Original datasets could be downloaded as follows:
- ./save_model_folder/ and ./runs/: folders to save models and outputs of tensorboardX respectively
- ./results/: folders to save the evaluation metrics for models.
Parameter Settings
Please refer to our paper for more details of parameter settings. Hyperparameters could be found in ./utils/config.json and you can adjust them when running the model.
How to use
- Training: after setting the parameters, run
train_main.pyfile to train models. - Testing: figure out the path of the specific saved model (i.e. variable
model_pathin ./test/testing_model.py) and then runtesting_model.pyfile to evaluate models.
Principal environmental dependencies as follows:
Citation
Please consider citing the following paper when using our code.
@inproceedings{DBLP:conf/kdd/YuSDL0L20,
author = {Le Yu and
Leilei Sun and
Bowen Du and
Chuanren Liu and
Hui Xiong and
Weifeng Lv},
title = {Predicting Temporal Sets with Deep Neural Networks},
booktitle = {{KDD} '20: The 26th {ACM} {SIGKDD} Conference on Knowledge Discovery
and Data Mining, Virtual Event, CA, USA, August 23-27, 2020},
pages = {1083--1091},
year = {2020}
}
Related Skills
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
groundhog
398Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
sec-edgar-agentkit
10AI agent toolkit for accessing and analyzing SEC EDGAR filing data. Build intelligent agents with LangChain, MCP-use, Gradio, Dify, and smolagents to analyze financial statements, insider trading, and company filings.
last30days-skill
4.4kAI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
