Package for 'Towards better dynamic link prediction' paper at NeurIPS 2022, the code provides download, processing, dataloading and evaluation code for a suite of dynamic graph datasets.
Project description
Dynamic Graph Processing
Provides
- A data-loader to download a suite of dynamic graph datasets.
- An evaluator for the suit of dynamic graph datasets
- Tools to benchmark graph models, example code snippets, tutorials, etc. (ongoing...)
To install
use pip for Python, make sure version python version is 3.6+
>>> pip install dgb
Code examples
Code snippet to import the module::
import dgb
Code snippets to download a dataset::
enron = dgb.TemporalDataSets(data_name="enron")
enron_dict = enron.process()
train = enron_dict["train"]
test = enron_dict["test"]
val = enron_dict["validation"]
to print all possible datasets::
data_list = dgb.list_all()
for data_name in data_list:
print(data_name)
to download all possible datasets that have not been downloaded yet::
dgb.download_all()
to force redownload all datasets::
dgb.force_download_all()
to skip download prompts and dataset statistics when processing::
dgb.TemporalDataSets(data_name="enron", skip_download_prompt=True, data_set_statistics=False)
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dgb-0.2.tar.gz
(21.7 kB
view details)
Built Distribution
dgb-0.2-py3-none-any.whl
(20.4 kB
view details)
File details
Details for the file dgb-0.2.tar.gz
.
File metadata
- Download URL: dgb-0.2.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 110cf5eff13f6b74c81fbd7d0a5ee99b052cdbe5256246e41cb6272f71135371 |
|
MD5 | 3095a00951e22df6af69928d40677a8c |
|
BLAKE2b-256 | f6abfa656f69bd263b3b589d07e3b15647564f05ae768c41b38610a6c7c10bd7 |
File details
Details for the file dgb-0.2-py3-none-any.whl
.
File metadata
- Download URL: dgb-0.2-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e69f4b727a334bedd1d4124eade89b9d394aa2014fe892f27d426be06f1ca42a |
|
MD5 | 7e2d8f3d1f28a1a0c603bf8949eb96d3 |
|
BLAKE2b-256 | a2c6c7a4a2dd64a0a2cbef6fec747f0eb12d2986ac9634274624b4121103a4a4 |