DBInfer-RelBench Adapter
Adapter to use DBInfer datasets with the RelBench interface.
Installation
pip install dbinfer-relbench-adapter
pip install dgl -f https://data.dgl.ai/wheels/torch-2.3/repo.html
Example
from dbinfer_relbench_adapter import load_dbinfer_data
# Load dataset and task
dataset, task = load_dbinfer_data("diginetica", "ctr")
# This interface is compatible with RelBench.
# Example usage (full dataset and task list below)
dataset = 'diginetica'
task = 'ctr'
- dataset: Dataset = get_dataset(dataset, download=True) # for relbench data
- task: EntityTask = get_task(dataset, task, download=True) # for relbench task
+ dataset, task = load_dbinfer_data(dataset, task) # use this line instead
Full list of supported datasets and tasks
See the full list of datasets and their data card in the accompanying paper.
| Dataset name | Task names |
|---|---|
avs |
repeater |
mag |
cite, venue |
diginetica |
ctr, purchase |
retailrocket |
cvr |
seznam |
charge, prepay |
amazon |
rating, purchase, churn |
stackexchange |
churn, upvote |
outbrain-small |
ctr |
@article{dbinfer,
title={4DBInfer: A 4D Benchmarking Toolbox for Graph-Centric Predictive Modeling on Relational DBs},
author={Wang, Minjie and Gan, Quan and Wipf, David and Cai, Zhenkun and Li, Ning and Tang, Jianheng and Zhang, Yanlin and Zhang, Zizhao and Mao, Zunyao and Song, Yakun and Wang, Yanbo and Li, Jiahang and Zhang, Han and Yang, Guang and Qin, Xiao and Lei, Chuan and Zhang, Muhan and Zhang, Weinan and Faloutsos, Christos and Zhang, Zheng},
journal={arXiv preprint arXiv:2404.18209},
year={2024}
}
License
MIT
Acknowledgements
This adapter package was made possible thanks to Yangyi Shen and Claude Code.
Metadata
Release files for dbinfer-relbench-adapter 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dbinfer_relbench_adapter-0.1.3.tar.gz | 14.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dbinfer_relbench_adapter-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.4 kB
Release files / dbinfer_relbench_adapter-0.1.3.tar.gz
| Download URL | dbinfer_relbench_adapter-0.1.3.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ddc9d7c70c6d0907c57d90d6c838c2db44fc3909907abc653ceaa3f9d8d4691
|
|
BLAKE2b-256 checksum How to use checksums |
4184fb14a9a4ec0df4fe8ad98afa80e2dfcc9b5a9af5c7968ccdbd6f25238b5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / dbinfer_relbench_adapter-0.1.3-py3-none-any.whl
| Download URL | dbinfer_relbench_adapter-0.1.3-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e846803d3a6ed0eba8a782777c83965e8d6e0daff597962fb2fc35df9548f145
|
|
BLAKE2b-256 checksum How to use checksums |
dd3c48487d3c0ee885c6d34ed0ee112572a83624e29c61056a94a99518e6fcf6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|