Skip to main content

TGB logo

Temporal Graph Benchmark for Machine Learning on Temporal Graphs (NeurIPS 2023 Datasets and Benchmarks Track)

Overview of the Temporal Graph Benchmark (TGB) pipeline:

  • TGB includes large-scale and realistic datasets from five different domains with both dynamic link prediction and node property prediction tasks.
  • TGB automatically downloads datasets and processes them into numpy, PyTorch and PyG compatible TemporalData formats.
  • Novel TG models can be easily evaluated on TGB datasets via reproducible and realistic evaluation protocols.
  • TGB provides public and online leaderboards to track recent developments in temporal graph learning domain.

TGB dataloading and evaluation pipeline

To submit to TGB leaderboard, please fill in this google form

See all version differences and update notes here

Annoucements

Excited to annouce that TGB has been accepted to NeurIPS 2023 Datasets and Benchmarks Track!

Thanks to everyone for your help in improving TGB! we will continue to improve TGB based on your feedback and suggestions.

Please update to version 0.9.0

version 0.9.0

Added the large tgbn-token dataset with 72 million edges to the nodeproppred dataset.

fixed errors in tgbl-coin and tgbl-flight where a small set of edges are not sorted chronologically. Please update your dataset version for them to version 2 (will be promted in terminal).

Pip Install

You can install TGB via pip. Requires python >= 3.9

pip install py-tgb

Links and Datasets

The project website can be found here.

The API documentations can be found here.

all dataset download links can be found at info.py

TGB dataloader will also automatically download the dataset as well as the negative samples for the link property prediction datasets.

if website is unaccessible, please use this link instead.

Running Example Methods

  • For the dynamic link property prediction task, see the examples/linkproppred folder for example scripts to run TGN, DyRep and EdgeBank on TGB datasets.
  • For the dynamic node property prediction task, see the examples/nodeproppred folder for example scripts to run TGN, DyRep and EdgeBank on TGB datasets.
  • For all other baselines, please see the TGB_Baselines repo.

Acknowledgments

We thank the OGB team for their support throughout this project and sharing their website code for the construction of TGB website.

Citation

If code or data from this repo is useful for your project, please consider citing our paper:

@article{huang2023temporal,
  title={Temporal graph benchmark for machine learning on temporal graphs},
  author={Huang, Shenyang and Poursafaei, Farimah and Danovitch, Jacob and Fey, Matthias and Hu, Weihua and Rossi, Emanuele and Leskovec, Jure and Bronstein, Michael and Rabusseau, Guillaume and Rabbany, Reihaneh},
  journal={Advances in Neural Information Processing Systems},
  year={2023}
}

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_tgb-0.9.0.tar.gz (47.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_tgb-0.9.0-py3-none-any.whl (59.7 kB view details)

Uploaded Python 3

File details

Details for the file py_tgb-0.9.0.tar.gz.

File metadata

  • Download URL: py_tgb-0.9.0.tar.gz
  • Upload date:
  • Size: 47.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/6.2.0-1011-azure

File hashes

Hashes for py_tgb-0.9.0.tar.gz
Algorithm Hash digest
SHA256 0b4693dfb619be786091f41656c64d47cba84faa837963e74b532baed3fc0bb4
MD5 92631144014b6711bf81639778f6097c
BLAKE2b-256 6d55423cdf6edb05554141f469cf3c3415e38fc53a44cf9f15e869296e0577a7

See more details on using hashes here.

File details

Details for the file py_tgb-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: py_tgb-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 59.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/6.2.0-1011-azure

File hashes

Hashes for py_tgb-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d099c57bcd14cb04253df44b68a0f67b6dc9dd54f445351fe12fbe5a470aa41
MD5 99e22692f2879bb9b60a2ad649a9c3a7
BLAKE2b-256 58334035a265f7e8798724258b517acfcee56c6748ab537f44e9a6efd969f9d2

See more details on using hashes here.

Release history Release notifications | RSS feed

2.3.0

2 files

2.2.0

2 files

2.1.0

2 files

2.0.0

2 files

0.9.2

2 files

0.9.1

2 files

This release

0.9.0 This release

2 files

0.8.0

2 files

0.7.5

2 files

0.7.0

2 files

0.6.0

2 files

0.1.2

2 files

0.1.1

2 files

0.1

3 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page