cLinuss commited on
Commit
44d396a
·
verified ·
1 Parent(s): 2f0ddba

Update dataset to v2.0.0: change to native parquet

Browse files
README.md CHANGED
@@ -1,97 +1,100 @@
1
  ---
2
  license: cc-by-nc-4.0
 
 
 
3
  ---
4
 
5
- # TAAC2026 Demo Dataset (1000 Samples)
6
 
7
- A sample dataset containing 1000 user-item interaction records for the [TAAC2026 competition](https://algo.qq.com).
8
 
9
- ## Dataset Description
 
 
 
 
10
 
11
- - **Rows**: 1,000
12
- - **Format**: Parquet (`sample_data.parquet`)
13
- - **File Size**: ~68 MB
 
 
 
 
 
 
 
 
14
 
15
  ## Columns
16
 
17
- | Column | Type | Description |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  |---|---|---|
19
- | `item_id` | `int64` | **Target item** identifier. |
20
- | `item_feature` | `array[struct]` | Array of **target item** feature dicts. Each element has `feature_id`, `feature_value_type`, and value fields (`float_value`, `int_array`, `int_value`). |
21
- | `label` | `array[struct]` | Array of label dicts. Each element contains `action_time` and `action_type`. |
22
- | `seq_feature` | `struct` | Sequence features dict with keys: `action_seq`, `content_seq`, `item_seq`. Each sub-key contains arrays of feature structs. |
23
- | `timestamp` | `int64` | Event timestamp. |
24
- | `user_feature` | `array[struct]` | Array of user feature dicts. Each element has `feature_id`, `feature_value_type`, and value fields (`float_array`, `int_array`, `int_value`). |
25
- | `user_id` | `string` | User identifier. |
26
-
27
- ## Feature Struct Schema
28
-
29
- Each feature element contains `feature_id`, `feature_value_type`, and several value fields. Depending on `feature_value_type`, the corresponding value fields are populated and the rest are `null`.
30
-
31
- **`item_feature`** — value fields: `int_value`, `float_value`, `int_array`
32
-
33
- ```json
34
- {
35
- "feature_id": 6,
36
- "feature_value_type": "int_value",
37
- "float_value": null,
38
- "int_array": null,
39
- "int_value": 96,
40
- }
41
- ```
42
 
43
- **`user_feature`** value fields: `int_value`, `float_array`, `int_array`
44
 
45
- ```json
46
- {
47
- "feature_id": 65,
48
- "feature_value_type": "int_value",
49
- "float_array": null,
50
- "int_array": null,
51
- "int_value": 19
52
- }
53
- ```
54
 
55
- **`seq_feature`** — value fields: `int_array`
56
 
57
- ```json
58
- {
59
- "feature_id": 19,
60
- "feature_value_type": "int_array",
61
- "int_array": [1, 1, 1, ...]
62
- }
63
- ```
64
 
65
- Possible `"feature_value_type"` values and their corresponding fields:
66
- - `"int_value"` → `int_value`
67
- - `"float_value"` → `float_value`
68
- - `"int_array"` → `int_array`
69
- - `"float_array"` → `float_array`
70
- - Also there are some combinations of these types, e.g. `"int_array_and_float_array"` → both `int_array` and `float_array` are populated.
71
 
72
- ## Label Schema
73
 
74
- Each element in the `label` array:
75
 
76
- ```json
77
- {
78
- "action_time": 1770694299,
79
- "action_type": 1
80
- }
81
- ```
 
 
 
 
 
 
 
 
 
82
 
83
  ## Usage
84
 
85
  ```python
 
86
  import pandas as pd
87
 
88
- df = pd.read_parquet("sample_data.parquet")
89
- print(df.shape) # (1000, 7)
90
- print(df.columns) # ['item_id', 'item_feature', 'label', 'seq_feature', 'timestamp', 'user_feature', 'user_id']
 
 
91
  ```
92
 
93
  With Hugging Face `datasets`:
94
-
95
  ```python
96
  from datasets import load_dataset
97
 
 
1
  ---
2
  license: cc-by-nc-4.0
3
+ tags:
4
+ - TAAC2026
5
+ - recommendation
6
  ---
7
 
8
+ # TAAC2026 Demo Dataset (1000 Samples)
9
 
 
10
 
11
+ > [!WARNING] Important Notice
12
+ > **Update[2026.04.10]**: This demo dataset has been updated to newest version with the following changes:
13
+ > - The parquet file is now a **flat column layout**, with all features as top-level columns.
14
+ > - Add a sequence feature, rename feature names and update some features.
15
+ > Participants should refer to the updated `demo_1000.parquet` and this `README.md` for the latest schema and data details.
16
 
17
+
18
+ A sample dataset containing 1000 user-item interaction records for the [TAAC2026 competition](https://algo.qq.com/). This dataset uses a **flat column layout** all features are stored as individual top-level columns instead of nested structs/arrays.
19
+
20
+ ## Dataset Overview
21
+
22
+ | Property | Value |
23
+ |---|---|
24
+ | **File** | `demo_1000.parquet` |
25
+ | **Rows** | 1,000 |
26
+ | **Columns** | 120 |
27
+ | **File Size** | ~39 MB |
28
 
29
  ## Columns
30
 
31
+ The 120 columns fall into **6 categories**:
32
+
33
+ | Category | Count | Arrow Type | Description |
34
+ |---|---|---|---|
35
+ | **ID & Label** | 5 | `int64` / `int32` | Core identifiers, label, and timestamp |
36
+ | **User Int Features** | 46 | `int64` / `list<int64>` | Integer-valued user features (scalar or array) |
37
+ | **User Dense Features** | 10 | `list<float>` | Float-array user features |
38
+ | **Item Int Features** | 14 | `int64` / `list<int64>` | Integer-valued item features (scalar or array) |
39
+ | **Domain Sequence Features** | 45 | `list<int64>` | Behavioral sequence features from 4 domains |
40
+
41
+ ---
42
+
43
+ ## Detailed Column Schema
44
+
45
+ ### ID & Label Columns (5 columns)
46
+
47
+ | Column | Arrow Type | Nulls
48
  |---|---|---|
49
+ | `user_id` | `int64` | 0 |
50
+ | `item_id` | `int64` | 0 |
51
+ | `label_type` | `int32` | 0 |
52
+ | `label_time` | `int64` | 0 |
53
+ | `timestamp` | `int64` | 0 |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
 
55
+ ### User Int Features (46 columns)
56
 
57
+ - `user_int_feats_{1,3,4,48-59,82,86,92-109}`: Scalar `int64`, total 35 columns.
58
+ - `user_int_feats_{15, 60, 62-66, 80, 89-91}`: Array `list<int64>`, total 11 columns.
 
 
 
 
 
 
 
59
 
 
60
 
61
+ ### User Dense Features (10 columns)
 
 
 
 
 
 
62
 
63
+ - `user_dense_feats_{61-66, 87, 89-91}`: Array `list<float>`, total 10 columns.
 
 
 
 
 
64
 
 
65
 
66
+ ### Item Int Features (14 columns)
67
 
68
+ `item_int_feats_{5-10, 12-13, 16, 81, 83-85}`: Scalar `int64`, total 13 columns.
69
+
70
+ `item_int_feats_{11}`: Array `list<int64>`, total 1 column.
71
+
72
+
73
+ ### Domain Sequence Features (45 columns)
74
+
75
+ `list<int64>` sequences from 4 behavioral domains:
76
+
77
+ - `domain_a_seq_{38-46}`: 9 columns
78
+ - `domain_b_seq_{67-79, 88}`: 14 columns
79
+ - `domain_c_seq_{27-37, 47}`: 12 columns
80
+ - `domain_d_seq_{17-26}`: 10 columns
81
+
82
+ ---
83
 
84
  ## Usage
85
 
86
  ```python
87
+ import pyarrow.parquet as pq
88
  import pandas as pd
89
 
90
+ # Read the parquet file
91
+ df = pd.read_parquet("demo_1000.parquet")
92
+
93
+ print(df.shape) # (1000, 120)
94
+ print(df.columns) # ['user_id', 'item_id', 'label_type', ...]
95
  ```
96
 
97
  With Hugging Face `datasets`:
 
98
  ```python
99
  from datasets import load_dataset
100
 
sample_data.parquet → demo_1000.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3cbea3e8469a5486626cf3e78aeb2c1f4d96ffeb2d5f1683e11529dd1da5bff2
3
- size 71154363
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ceaa386ec322436231f2615e5ee89e791d79c727a788c0fb439b0ecb6b68848
3
+ size 40268995