Skip to main content

Adapter to bridge DBInfer datasets and tasks to the RelBench interface with caching support

Project description

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.

Project details


Download files

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

Source Distribution

dbinfer_relbench_adapter-0.1.3.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

dbinfer_relbench_adapter-0.1.3-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file dbinfer_relbench_adapter-0.1.3.tar.gz.

File metadata

File hashes

Hashes for dbinfer_relbench_adapter-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0ddc9d7c70c6d0907c57d90d6c838c2db44fc3909907abc653ceaa3f9d8d4691
MD5 2e132aae3cc0f8d10981a67a05c0d1e6
BLAKE2b-256 4184fb14a9a4ec0df4fe8ad98afa80e2dfcc9b5a9af5c7968ccdbd6f25238b5c

See more details on using hashes here.

File details

Details for the file dbinfer_relbench_adapter-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for dbinfer_relbench_adapter-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e846803d3a6ed0eba8a782777c83965e8d6e0daff597962fb2fc35df9548f145
MD5 d5fb7d187dab30dbf64040a19669f771
BLAKE2b-256 dd3c48487d3c0ee885c6d34ed0ee112572a83624e29c61056a94a99518e6fcf6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page