rishabh-ranjan commited on
Commit
a37a1de
·
verified ·
1 Parent(s): 42d827c

Fix card frontmatter (real YAML) + viewer config; no overview prose link

Browse files
Files changed (1) hide show
  1. README.md +61 -2
README.md CHANGED
@@ -1,5 +1,64 @@
1
- ---\ntags:\n- relbench\n- relational-deep-learning\npretty_name: RelBench dbinfer datasets\nconfigs:
 
 
 
 
 
2
  - config_name: overview
3
  data_files:
4
  - split: databases
5
- path: overview.csv\n---\n\n
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - relbench
4
+ - relational-deep-learning
5
+ pretty_name: RelBench dbinfer datasets
6
+ configs:
7
  - config_name: overview
8
  data_files:
9
  - split: databases
10
+ path: overview.csv
11
+ ---
12
+
13
+ # RelBench dbinfer datasets
14
+
15
+ This repository hosts the **dbinfer** family of relational datasets in the RelBench 3.0
16
+ manifest format, one subdirectory per dataset. The datasets originate from the
17
+ [4DBInfer benchmark](https://github.com/awslabs/multi-table-benchmark) (data version
18
+ `20240304`) and are exposed to RelBench via the `dbinfer-relbench-adapter` package. Their
19
+ labels are built externally and served as-is (every task has `kind: external`).
20
+
21
+ Each subdirectory is a self-describing RelBench dataset (`manifest.yaml` + plain `db/*.parquet`
22
+ + `tasks/<task>/`); open its `schema.svg` for a zoomable entity-relationship diagram.
23
+
24
+ ## Datasets
25
+
26
+ | dataset | domain | tasks |
27
+ |---|---|---|
28
+ | [`dbinfer-avs`](dbinfer-avs) | Acquire Valued Shoppers retail transactions | `repeater` |
29
+ | [`dbinfer-diginetica`](dbinfer-diginetica) | E-commerce browsing/purchase sessions (CIKM Cup 2016) | `ctr`, `purchase` |
30
+ | [`dbinfer-retailrocket`](dbinfer-retailrocket) | E-commerce visitor events | `cvr` |
31
+ | [`dbinfer-seznam`](dbinfer-seznam) | Seznam.cz advertising account charges | `charge`, `prepay` |
32
+ | [`dbinfer-amazon`](dbinfer-amazon) | Amazon product reviews | `rating`, `purchase`, `churn` |
33
+ | [`dbinfer-stackexchange`](dbinfer-stackexchange) | StackExchange community Q&A | `churn`, `upvote` |
34
+ | [`dbinfer-outbrain-small`](dbinfer-outbrain-small) | Outbrain content recommendation | `ctr` |
35
+
36
+ (Only datasets actually present as subdirectories are available; see each subdirectory's card
37
+ for details.)
38
+
39
+ ## Loading
40
+
41
+ ```python
42
+ import relbench
43
+ ds = relbench.load_dataset("dbinfer-diginetica") # or any dataset above
44
+ task = relbench.load_task("dbinfer-diginetica", "ctr")
45
+ db = ds.get_db()
46
+ train = task.get_table("train")
47
+ ```
48
+
49
+ See the RelBench
50
+ [CONTRIBUTING guide](https://github.com/snap-stanford/relbench/blob/main/CONTRIBUTING.md)
51
+ for the manifest layout.
52
+
53
+ ## Citation
54
+
55
+ These datasets are from the 4DBInfer benchmark. If you use them, please cite:
56
+
57
+ ```bibtex
58
+ @article{dbinfer,
59
+ title={4DBInfer: A 4D Benchmarking Toolbox for Graph-Centric Predictive Modeling on Relational DBs},
60
+ 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},
61
+ journal={arXiv preprint arXiv:2404.18209},
62
+ year={2024}
63
+ }
64
+ ```