rishabh-ranjan commited on
Commit
11af083
·
verified ·
1 Parent(s): 9b9d591

Add dbinfer-diginetica

Browse files
dbinfer-diginetica/README.md ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - relbench
4
+ - relational-deep-learning
5
+ pretty_name: dbinfer-diginetica
6
+ ---
7
+
8
+ # dbinfer-diginetica
9
+
10
+ Diginetica from the 4DBInfer benchmark: an e-commerce dataset of user browsing and purchasing sessions over a product catalog (CIKM Cup 2016), used for click-through-rate and purchase prediction.
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 `1970-01-01 00:00:00`, test `1970-01-02 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
+ | `ctr` | external | binary_classification | Predict whether a displayed item is clicked (click-through rate). |
25
+ | `purchase` | external | multiclass_classification | Predict whether a viewed item is purchased. |
26
+
27
+ ## Loading
28
+
29
+ ```python
30
+ import relbench
31
+ ds = relbench.load_dataset("dbinfer-diginetica")
32
+ task = relbench.load_task("dbinfer-diginetica", "<task>")
33
+ ```
34
+
35
+ Manifest layout (`manifest.yaml` + plain parquet); see the RelBench [CONTRIBUTING guide](https://github.com/snap-stanford/relbench/blob/main/CONTRIBUTING.md).
dbinfer-diginetica/db/Click.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d71af23640c331e3d68d75aafe57db56e831938c130dff92b2a969f40fae1f9f
3
+ size 13213627
dbinfer-diginetica/db/Product.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49cb9d5ed922ff9da2e0bab1b2dc26d4442efbb174b48c45438e07cb6c41002f
3
+ size 1105589
dbinfer-diginetica/db/ProductNameToken.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7e0440643583c710da6009876e5c6872462ed7014b0af23aef8acb707651b16
3
+ size 7040478
dbinfer-diginetica/db/Purchase.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65ddc59398f6c8af80c092a3fec3633ab4559a78ccd06a57f6a09f09c5d8f6a8
3
+ size 464218
dbinfer-diginetica/db/Query.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf5f7e2b06e76f4e48f5998cd7b2ef2d32d4030a4617b4c5db035b66decb0412
3
+ size 13367023
dbinfer-diginetica/db/QueryResult.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f167bbabc93d9f0f4420f64a13f5b011bd7ac1e45c77fad5a227b2a1a9302c71
3
+ size 401427337
dbinfer-diginetica/db/QuerySearchstringToken.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e593b640506608d2ab4194f688774f7e8c0e22090507f7449c5ba39ae0a1368
3
+ size 1168161
dbinfer-diginetica/db/View.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10c885cf4a116bcdf4667fdeadbb8129a87cd540899de3ce79751ecf1e606b18
3
+ size 19543006
dbinfer-diginetica/manifest.yaml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: dbinfer-diginetica
2
+ manifest_version: 1
3
+ description: 'Diginetica from the 4DBInfer benchmark: an e-commerce dataset of user browsing and purchasing sessions over a product catalog (CIKM Cup 2016), used for click-through-rate and purchase prediction.'
4
+ val_timestamp: '1970-01-01 00:00:00'
5
+ test_timestamp: '1970-01-02 00:00:00'
6
+ tables:
7
+ Click:
8
+ pkey: __synthetic_pk__
9
+ time_col: timestamp
10
+ fkeys:
11
+ queryId: Query
12
+ itemId: Product
13
+ Purchase:
14
+ pkey: __synthetic_pk__
15
+ time_col: timestamp
16
+ fkeys:
17
+ itemId: Product
18
+ QuerySearchstringToken:
19
+ pkey: __synthetic_pk__
20
+ time_col: null
21
+ fkeys:
22
+ queryId: Query
23
+ QueryResult:
24
+ pkey: __synthetic_pk__
25
+ time_col: timestamp
26
+ fkeys:
27
+ queryId: Query
28
+ itemId: Product
29
+ View:
30
+ pkey: __synthetic_pk__
31
+ time_col: timestamp
32
+ fkeys:
33
+ itemId: Product
34
+ ProductNameToken:
35
+ pkey: __synthetic_pk__
36
+ time_col: null
37
+ fkeys:
38
+ itemId: Product
39
+ Product:
40
+ pkey: itemId
41
+ time_col: null
42
+ fkeys: {}
43
+ Query:
44
+ pkey: queryId
45
+ time_col: timestamp
46
+ fkeys: {}
dbinfer-diginetica/schema.svg ADDED
dbinfer-diginetica/tasks/ctr/manifest.yaml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ name: ctr
2
+ kind: external
3
+ task_type: binary_classification
4
+ description: Predict whether a displayed item is clicked (click-through rate).
5
+ entity_table: Click
6
+ entity_col: queryId
7
+ target_col: clicked
8
+ time_col: timestamp
9
+ timedelta: 1 days 00:00:00
10
+ manifest_version: 1
dbinfer-diginetica/tasks/ctr/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d307fc0a2be51e20e15ce5aa9506ecd4fe1ca7aa7d1e4927ba27e3ce01804889
3
+ size 31779
dbinfer-diginetica/tasks/ctr/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19fbe50eaeb25b84cfe38c2c36b1bc610e140c8ff890a34566a03c5562203d42
3
+ size 384183
dbinfer-diginetica/tasks/ctr/val.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3fedeb0dc7b6d39c36b76ce3bb987451b407139edef0188e224c2aa6c09748d
3
+ size 31961
dbinfer-diginetica/tasks/purchase/manifest.yaml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ name: purchase
2
+ kind: external
3
+ task_type: multiclass_classification
4
+ description: Predict whether a viewed item is purchased.
5
+ entity_table: Purchase
6
+ entity_col: sessionId
7
+ target_col: itemId
8
+ time_col: timestamp
9
+ timedelta: 1 days 00:00:00
10
+ manifest_version: 1
dbinfer-diginetica/tasks/purchase/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30163e362661aff1bb517f1c617fe03fb1c01d4cc50166b11455de800ba7817c
3
+ size 165708
dbinfer-diginetica/tasks/purchase/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83e4e55503525dbbb3301101c64c90b07af12f30904f4a2c329e67734218f60c
3
+ size 273563
dbinfer-diginetica/tasks/purchase/val.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a49e8c227a59810eda9ed75dedbf52f3c71f9da798b82801b0b5ba2b6055ebe8
3
+ size 140653