rishabh-ranjan commited on
Commit
19d9cab
·
verified ·
1 Parent(s): 506743f

Add dbinfer-avs

Browse files
dbinfer-avs/README.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - relbench
4
+ - relational-deep-learning
5
+ pretty_name: dbinfer-avs
6
+ ---
7
+
8
+ # dbinfer-avs
9
+
10
+ Acquire Valued Shoppers (AVS) from the 4DBInfer benchmark: a retail dataset of customer transaction histories and promotional offers, used to predict shopper behavior such as offer repeat purchases.
11
+
12
+ ## Schema
13
+
14
+ ![schema diagram](schema.svg)
15
+
16
+ Open [`schema.svg`](schema.svg) for a zoomable view: each table lists all of its columns and types, with primary keys, foreign keys, and the foreign-key edges between tables.
17
+
18
+ Splits: validation `2013-07-30 00:00:00`, test `2013-07-31 00:00:00` (rows up to a split's timestamp are the inputs for that split).
19
+
20
+ ## Tasks
21
+
22
+ | task | kind | type | description |
23
+ |---|---|---|---|
24
+ | `repeater` | external | binary_classification | Predict whether a shopper becomes a repeat buyer of an offer. |
25
+
26
+ ## Loading
27
+
28
+ ```python
29
+ import relbench
30
+ ds = relbench.load_dataset("dbinfer-avs")
31
+ task = relbench.load_task("dbinfer-avs", "<task>")
32
+ ```
33
+
34
+ Manifest layout (`manifest.yaml` + plain parquet); see the RelBench [CONTRIBUTING guide](https://github.com/snap-stanford/relbench/blob/main/CONTRIBUTING.md).
dbinfer-avs/db/History.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d863a3bb790e9f08fcfbf606467947d94ab69099534612a42fef5006b333ac5f
3
+ size 2469250
dbinfer-avs/db/Offer.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f32501995256bba5b498008009213a4ce5fc0e39d540e0b51c141e33002a4ec
3
+ size 4625
dbinfer-avs/db/Transaction.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f44db13a2e424027900a1229bb72068bdd101f5ab275f16673177d45d86f83e3
3
+ size 5559598329
dbinfer-avs/manifest.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: dbinfer-avs
2
+ manifest_version: 1
3
+ description: 'Acquire Valued Shoppers (AVS) from the 4DBInfer benchmark: a retail dataset of customer transaction histories and promotional offers, used to predict shopper behavior such as offer repeat purchases.'
4
+ val_timestamp: '2013-07-30 00:00:00'
5
+ test_timestamp: '2013-07-31 00:00:00'
6
+ tables:
7
+ History:
8
+ pkey: __synthetic_pk__
9
+ time_col: offerdate
10
+ fkeys:
11
+ offer: Offer
12
+ Transaction:
13
+ pkey: __synthetic_pk__
14
+ time_col: date
15
+ fkeys: {}
16
+ Offer:
17
+ pkey: offer
18
+ time_col: null
19
+ fkeys: {}
dbinfer-avs/schema.svg ADDED
dbinfer-avs/tasks/repeater/manifest.yaml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ name: repeater
2
+ kind: external
3
+ task_type: binary_classification
4
+ description: Predict whether a shopper becomes a repeat buyer of an offer.
5
+ entity_table: History
6
+ entity_col: id
7
+ target_col: repeater
8
+ time_col: timestamp
9
+ timedelta: 1 days 00:00:00
10
+ manifest_version: 1
dbinfer-avs/tasks/repeater/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c38a530eb578b583a9d8d4004c5539feb4ff26122860553fe41066f599e943c
3
+ size 225527
dbinfer-avs/tasks/repeater/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:995a502ea9f2a215798e8839d1e488297e90782a12a65d1f7353aca66004b2f0
3
+ size 931403
dbinfer-avs/tasks/repeater/val.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8225e3dd5f9cfb48287df40d15afb72f9a361b9e8a3c61b935e4691072bb14fa
3
+ size 204314