Datasets:
Update dataset to v2.0.0: use native parquet format
Browse files- README.md +202 -77
- sample_10.parquet → demo_1000.parquet +2 -2
README.md
CHANGED
|
@@ -1,98 +1,209 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
task_categories:
|
| 4 |
-
- text-classification
|
| 5 |
tags:
|
| 6 |
-
- TAAC2026
|
| 7 |
-
- recommendation
|
| 8 |
size_categories:
|
| 9 |
-
- n<1K
|
| 10 |
---
|
| 11 |
|
| 12 |
-
# TAAC2026 Demo Dataset —
|
| 13 |
|
| 14 |
-
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
|
| 19 |
-
- **Columns**: 120
|
| 20 |
-
- **Format**: Gzip-compressed Parquet (`demo_1000_0408.gz.parquet`)
|
| 21 |
-
- **File Size**: ~27.42 MB
|
| 22 |
-
- **Unique Users**: 1,016
|
| 23 |
-
- **Unique Items**: 849
|
| 24 |
-
- **Timestamp Range**: `2026-03-05 23:36:40` — `2026-03-05 23:49:41`
|
| 25 |
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
-
|
| 29 |
|
| 30 |
-
|
|
| 31 |
-
|---|---|---|
|
| 32 |
-
|
|
| 33 |
-
|
|
| 34 |
-
| **User Dense Features** | `user_dense_feats_{61–66,87,89–91}` | 10 | `list<float>` | Float-array user features (e.g. embeddings). |
|
| 35 |
-
| **Item Int Features** | `item_int_feats_{5–13,16,81,83–85}` | 14 | `int64` or `list<int64>` | Integer-valued item features (scalar or array). |
|
| 36 |
-
| **Domain Sequence Features** | `domain_a_seq_{38–46}`, `domain_b_seq_{67–79,88}`, `domain_c_seq_{27–37,47}`, `domain_d_seq_{17–26}` | 45 | `list<int64>` | Behavioral sequence features from 4 domains. |
|
| 37 |
|
| 38 |
-
##
|
| 39 |
|
| 40 |
-
|
|
|
|
|
|
|
| 41 |
|---|---|---|---|
|
| 42 |
-
|
|
| 43 |
-
|
|
| 44 |
-
|
|
| 45 |
-
| `
|
| 46 |
-
|
|
| 47 |
|
| 48 |
-
|
| 49 |
|
| 50 |
-
|
| 51 |
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
|
| 55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
### User Dense Features (10 columns)
|
| 60 |
|
| 61 |
-
All are `list<float>` arrays
|
| 62 |
|
| 63 |
-
| Column | Nulls |
|
| 64 |
-
|---|---|---|
|
| 65 |
-
| `user_dense_feats_61` | 2 | 256
|
| 66 |
-
| `user_dense_feats_62`
|
| 67 |
-
| `
|
| 68 |
-
| `
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
### Item Int Features (14 columns)
|
| 71 |
|
| 72 |
-
|
|
| 73 |
-
|---|---|---|
|
| 74 |
-
|
|
| 75 |
-
|
|
| 76 |
-
|
| 77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
|
| 79 |
### Domain Sequence Features (45 columns)
|
| 80 |
|
| 81 |
Variable-length `list<int64>` sequences from 4 behavioral domains:
|
| 82 |
|
| 83 |
-
| Domain | Columns | Count | Nulls | Seq Length
|
| 84 |
|---|---|---|---|---|
|
| 85 |
-
| **domain_a** | `domain_a_seq_38`–`_46` | 9 | 5 | 1
|
| 86 |
-
| **domain_b** | `domain_b_seq_67`–`_79`, `_88` | 14 | 12 | 1
|
| 87 |
-
| **domain_c** | `domain_c_seq_27`–`_37`, `_47` | 12 | 2 |
|
| 88 |
-
| **domain_d** | `domain_d_seq_17`–`_26` | 10 |
|
| 89 |
|
| 90 |
-
|
| 91 |
|
| 92 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
|---|---|---|
|
| 94 |
-
|
|
| 95 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
|
| 97 |
## Usage
|
| 98 |
|
|
@@ -100,34 +211,48 @@ Variable-length `list<int64>` sequences from 4 behavioral domains:
|
|
| 100 |
import pyarrow.parquet as pq
|
| 101 |
import pandas as pd
|
| 102 |
|
| 103 |
-
# Read
|
| 104 |
-
pf = pq.ParquetFile("
|
| 105 |
table = pf.read()
|
| 106 |
df = table.to_pandas()
|
| 107 |
|
| 108 |
-
print(df.shape) # (
|
| 109 |
-
print(df.columns) # ['user_id', 'item_id', 'label_type',
|
| 110 |
```
|
| 111 |
|
| 112 |
```python
|
| 113 |
-
#
|
| 114 |
print(df['label_type'].value_counts())
|
| 115 |
-
# 1
|
| 116 |
-
# 2
|
| 117 |
|
| 118 |
# Access a sequence feature
|
| 119 |
seq = df['domain_a_seq_38'].dropna().iloc[0]
|
| 120 |
print(type(seq), len(seq)) # <class 'numpy.ndarray'> variable length
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
```
|
| 122 |
|
| 123 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
|
| 128 |
-
|
|
| 129 |
-
|
|
| 130 |
-
|
|
| 131 |
-
|
|
| 132 |
-
|
| 133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
task_categories:
|
| 4 |
+
- text-classification
|
| 5 |
tags:
|
| 6 |
+
- TAAC2026
|
| 7 |
+
- recommendation
|
| 8 |
size_categories:
|
| 9 |
+
- n<1K
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# TAAC2026 Demo Dataset — data_1000
|
| 13 |
|
| 14 |
+
> ⚠️ **Warning**: This is a demo dataset for demonstration purposes only. It is not intended for model training or evaluation, and may not reflect the full complexity of the actual TAAC2026 data.
|
| 15 |
|
| 16 |
+
A sample dataset containing **1,000** user-item interaction records for the TAAC2026 competition. This dataset uses a **flat column layout** — all features are stored as individual top-level columns instead of nested structs/arrays. It is a 1,000-row subset (first 1,000 rows) of the `demo_1000_0408.gz.parquet` (1,016 rows).
|
| 17 |
|
| 18 |
+
## Dataset Overview
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
+
| Property | Value |
|
| 21 |
+
|---|---|
|
| 22 |
+
| **File** | `demo_1000.parquet` |
|
| 23 |
+
| **Rows** | 1,000 |
|
| 24 |
+
| **Columns** | 120 |
|
| 25 |
+
| **Format** | Apache Parquet (uncompressed) |
|
| 26 |
+
| **File Size** | ~38.41 MB |
|
| 27 |
+
| **Unique Users** | 1,000 |
|
| 28 |
+
| **Unique Items** | 837 |
|
| 29 |
+
| **Timestamp Range** | `2026-03-05 23:36:40` — `2026-03-05 23:49:41` |
|
| 30 |
|
| 31 |
+
## Label Distribution
|
| 32 |
|
| 33 |
+
| `label_type` | Count | Percentage |
|
| 34 |
+
|---|---|---|
|
| 35 |
+
| 1 | 876 | 87.6% |
|
| 36 |
+
| 2 | 124 | 12.4% |
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
+
## Column Categories
|
| 39 |
|
| 40 |
+
The 120 columns fall into **6 categories**:
|
| 41 |
+
|
| 42 |
+
| Category | Count | Arrow Type | Description |
|
| 43 |
|---|---|---|---|
|
| 44 |
+
| **ID & Label** | 5 | `int64` / `int32` | Core identifiers, label, and timestamp |
|
| 45 |
+
| **User Int Features** | 46 | `int64` / `double` / `list<int64>` | Integer-valued user features (scalar or array) |
|
| 46 |
+
| **User Dense Features** | 10 | `list<float>` | Float-array user features (e.g. embeddings) |
|
| 47 |
+
| **Item Int Features** | 14 | `double` / `list<int64>` | Integer-valued item features (scalar or array) |
|
| 48 |
+
| **Domain Sequence Features** | 45 | `list<int64>` | Behavioral sequence features from 4 domains |
|
| 49 |
|
| 50 |
+
---
|
| 51 |
|
| 52 |
+
## Detailed Column Schema
|
| 53 |
|
| 54 |
+
### ID & Label Columns (5 columns)
|
| 55 |
+
|
| 56 |
+
| Column | Arrow Type | Nulls | Min | Max | Mean | Unique |
|
| 57 |
+
|---|---|---|---|---|---|---|
|
| 58 |
+
| `user_id` | `int64` | 0 | 2,727,076 | 12,728,427 | 7,835,799.34 | 1,000 |
|
| 59 |
+
| `item_id` | `int64` | 0 | 6,854 | 278,202,253 | 112,417,687.39 | 837 |
|
| 60 |
+
| `label_type` | `int32` | 0 | 1 | 2 | 1.124 | 2 |
|
| 61 |
+
| `label_time` | `int64` | 0 | 1,772,725,027 | 1,772,725,910 | 1,772,725,503.90 | 553 |
|
| 62 |
+
| `timestamp` | `int64` | 0 | 1,772,725,000 | 1,772,725,781 | 1,772,725,275.45 | 501 |
|
| 63 |
|
| 64 |
+
### User Int Features (46 columns)
|
| 65 |
+
|
| 66 |
+
#### Scalar Columns (`int64` / `double`)
|
| 67 |
+
|
| 68 |
+
| Column | Nulls | Null% | Min | Max | Mean | Unique |
|
| 69 |
+
|---|---|---|---|---|---|---|
|
| 70 |
+
| `user_int_feats_1` | 0 | 0.0% | 1 | 4 | 3.381 | 3 |
|
| 71 |
+
| `user_int_feats_3` | 30 | 3.0% | 9 | 1,839 | 987.557 | 341 |
|
| 72 |
+
| `user_int_feats_4` | 30 | 3.0% | 1 | 986 | 498.813 | 268 |
|
| 73 |
+
| `user_int_feats_48` | 2 | 0.2% | 3 | 99 | 58.006 | 52 |
|
| 74 |
+
| `user_int_feats_49` | 7 | 0.7% | 1 | 2 | 1.582 | 2 |
|
| 75 |
+
| `user_int_feats_50` | 4 | 0.4% | 0 | 1 | 0.998 | 2 |
|
| 76 |
+
| `user_int_feats_51` | 1 | 0.1% | 40 | 150 | 56.157 | 5 |
|
| 77 |
+
| `user_int_feats_52` | 1 | 0.1% | 5 | 174 | 93.856 | 36 |
|
| 78 |
+
| `user_int_feats_53` | 1 | 0.1% | 3 | 557 | 288.542 | 264 |
|
| 79 |
+
| `user_int_feats_54` | 368 | 36.8% | 3 | 2,843 | 1,476.783 | 462 |
|
| 80 |
+
| `user_int_feats_55` | 19 | 1.9% | 8 | 41 | 29.682 | 13 |
|
| 81 |
+
| `user_int_feats_56` | 19 | 1.9% | 1 | 1,434 | 752.658 | 405 |
|
| 82 |
+
| `user_int_feats_57` | 31 | 3.1% | 2 | 250 | 126.588 | 105 |
|
| 83 |
+
| `user_int_feats_58` | 150 | 15.0% | 1 | 2 | 1.699 | 2 |
|
| 84 |
+
| `user_int_feats_59` | 150 | 15.0% | 1 | 14 | 8.371 | 8 |
|
| 85 |
+
| `user_int_feats_82` | 204 | 20.4% | 1 | 23 | 9.097 | 23 |
|
| 86 |
+
| `user_int_feats_86` | 692 | 69.2% | 2 | 245 | 105.474 | 61 |
|
| 87 |
+
| `user_int_feats_92` | 494 | 49.4% | 1 | 2 | 1.500 | 2 |
|
| 88 |
+
| `user_int_feats_93` | 171 | 17.1% | 1 | 37 | 14.667 | 36 |
|
| 89 |
+
| `user_int_feats_94` | 521 | 52.1% | 1 | 6 | 3.770 | 6 |
|
| 90 |
+
| `user_int_feats_95` | 318 | 31.8% | 1 | 3 | 2.758 | 3 |
|
| 91 |
+
| `user_int_feats_96` | 678 | 67.8% | 1 | 3 | 1.817 | 3 |
|
| 92 |
+
| `user_int_feats_97` | 292 | 29.2% | 1 | 3 | 1.599 | 3 |
|
| 93 |
+
| `user_int_feats_98` | 103 | 10.3% | 1 | 3 | 2.678 | 3 |
|
| 94 |
+
| `user_int_feats_99` | 812 | 81.2% | 1 | 3 | 2.936 | 2 |
|
| 95 |
+
| `user_int_feats_100` | 845 | 84.5% | 1 | 2 | 1.955 | 2 |
|
| 96 |
+
| `user_int_feats_101` | 910 | 91.0% | 2 | 3 | 2.956 | 2 |
|
| 97 |
+
| `user_int_feats_102` | 877 | 87.7% | 1 | 3 | 1.130 | 2 |
|
| 98 |
+
| `user_int_feats_103` | 862 | 86.2% | 1 | 3 | 2.717 | 3 |
|
| 99 |
+
| `user_int_feats_104` | 372 | 37.2% | 1 | 3 | 2.360 | 3 |
|
| 100 |
+
| `user_int_feats_105` | 309 | 30.9% | 1 | 3 | 2.287 | 3 |
|
| 101 |
+
| `user_int_feats_106` | 160 | 16.0% | 1 | 3 | 1.760 | 3 |
|
| 102 |
+
| `user_int_feats_107` | 300 | 30.0% | 1 | 2 | 1.094 | 2 |
|
| 103 |
+
| `user_int_feats_108` | 516 | 51.6% | 2 | 7 | 5.455 | 6 |
|
| 104 |
+
| `user_int_feats_109` | 854 | 85.4% | 1 | 7 | 2.993 | 7 |
|
| 105 |
+
|
| 106 |
+
#### Array Columns (`list<int64>`)
|
| 107 |
+
|
| 108 |
+
| Column | Nulls | Null% | Element Type |
|
| 109 |
+
|---|---|---|---|
|
| 110 |
+
| `user_int_feats_15` | 139 | 13.9% | `list<int64>` |
|
| 111 |
+
| `user_int_feats_60` | 592 | 59.2% | `list<int64>` |
|
| 112 |
+
| `user_int_feats_62` | 70 | 7.0% | `list<int64>` |
|
| 113 |
+
| `user_int_feats_63` | 70 | 7.0% | `list<int64>` |
|
| 114 |
+
| `user_int_feats_64` | 70 | 7.0% | `list<int64>` |
|
| 115 |
+
| `user_int_feats_65` | 80 | 8.0% | `list<int64>` |
|
| 116 |
+
| `user_int_feats_66` | 86 | 8.6% | `list<int64>` |
|
| 117 |
+
| `user_int_feats_80` | 200 | 20.0% | `list<int64>` |
|
| 118 |
+
| `user_int_feats_89` | 55 | 5.5% | `list<int64>` |
|
| 119 |
+
| `user_int_feats_90` | 91 | 9.1% | `list<int64>` |
|
| 120 |
+
| `user_int_feats_91` | 450 | 45.0% | `list<int64>` |
|
| 121 |
|
| 122 |
### User Dense Features (10 columns)
|
| 123 |
|
| 124 |
+
All columns are `list<float>` arrays (e.g. embedding vectors).
|
| 125 |
|
| 126 |
+
| Column | Nulls | Null% | Description |
|
| 127 |
+
|---|---|---|---|
|
| 128 |
+
| `user_dense_feats_61` | 2 | 0.2% | 256-dim embedding vector |
|
| 129 |
+
| `user_dense_feats_62` | 70 | 7.0% | Variable-length float array |
|
| 130 |
+
| `user_dense_feats_63` | 70 | 7.0% | Variable-length float array |
|
| 131 |
+
| `user_dense_feats_64` | 70 | 7.0% | Variable-length float array |
|
| 132 |
+
| `user_dense_feats_65` | 80 | 8.0% | Variable-length float array |
|
| 133 |
+
| `user_dense_feats_66` | 86 | 8.6% | Variable-length float array |
|
| 134 |
+
| `user_dense_feats_87` | 15 | 1.5% | 320-dim embedding vector |
|
| 135 |
+
| `user_dense_feats_89` | 55 | 5.5% | Variable-length float array |
|
| 136 |
+
| `user_dense_feats_90` | 91 | 9.1% | Variable-length float array |
|
| 137 |
+
| `user_dense_feats_91` | 450 | 45.0% | Variable-length float array |
|
| 138 |
|
| 139 |
### Item Int Features (14 columns)
|
| 140 |
|
| 141 |
+
| Column | Arrow Type | Nulls | Null% | Min | Max | Mean | Unique |
|
| 142 |
+
|---|---|---|---|---|---|---|---|
|
| 143 |
+
| `item_int_feats_5` | `double` | 2 | 0.2% | 4 | 325 | 118.452 | 82 |
|
| 144 |
+
| `item_int_feats_6` | `double` | 2 | 0.2% | 0 | 977 | 419.073 | 216 |
|
| 145 |
+
| `item_int_feats_7` | `double` | 2 | 0.2% | 0 | 2,806 | 1,052.866 | 349 |
|
| 146 |
+
| `item_int_feats_8` | `double` | 2 | 0.2% | -1 | 2,431 | 463.712 | 226 |
|
| 147 |
+
| `item_int_feats_9` | `double` | 2 | 0.2% | 3 | 37 | 21.171 | 24 |
|
| 148 |
+
| `item_int_feats_10` | `double` | 2 | 0.2% | 2 | 309 | 150.007 | 110 |
|
| 149 |
+
| `item_int_feats_11` | `list<int64>` | 439 | 43.9% | — | — | — | — |
|
| 150 |
+
| `item_int_feats_12` | `double` | 2 | 0.2% | 0 | 2,777 | 1,039.381 | 352 |
|
| 151 |
+
| `item_int_feats_13` | `double` | 2 | 0.2% | 1 | 8 | 4.457 | 8 |
|
| 152 |
+
| `item_int_feats_16` | `double` | 2 | 0.2% | 2 | 35,259 | 12,356.101 | 662 |
|
| 153 |
+
| `item_int_feats_81` | `double` | 2 | 0.2% | 0 | 2 | 0.508 | 3 |
|
| 154 |
+
| `item_int_feats_83` | `double` | 832 | 83.2% | 1 | 31 | 17.595 | 22 |
|
| 155 |
+
| `item_int_feats_84` | `double` | 832 | 83.2% | 3 | 226 | 131.131 | 66 |
|
| 156 |
+
| `item_int_feats_85` | `double` | 832 | 83.2% | 4 | 1,001 | 439.816 | 103 |
|
| 157 |
|
| 158 |
### Domain Sequence Features (45 columns)
|
| 159 |
|
| 160 |
Variable-length `list<int64>` sequences from 4 behavioral domains:
|
| 161 |
|
| 162 |
+
| Domain | Columns | Count | Nulls per Col | Max Seq Length |
|
| 163 |
|---|---|---|---|---|
|
| 164 |
+
| **domain_a** | `domain_a_seq_38` – `_46` | 9 | 5 | 1,888 |
|
| 165 |
+
| **domain_b** | `domain_b_seq_67` – `_79`, `_88` | 14 | 12 | 1,952 |
|
| 166 |
+
| **domain_c** | `domain_c_seq_27` – `_37`, `_47` | 12 | 2 | 3,894 |
|
| 167 |
+
| **domain_d** | `domain_d_seq_17` – `_26` | 10 | 80 | 3,951 |
|
| 168 |
|
| 169 |
+
---
|
| 170 |
|
| 171 |
+
## Null Coverage Summary
|
| 172 |
+
|
| 173 |
+
| Group | Columns | Zero Coverage | Low Coverage (<50%) | Notes |
|
| 174 |
+
|---|---|---|---|---|
|
| 175 |
+
| `user_int_feats_` | 46 | 0 | 11 | Columns 99–103, 109 have >80% nulls |
|
| 176 |
+
| `user_dense_feats_` | 10 | 0 | 0 | `user_dense_feats_91` has 45% nulls |
|
| 177 |
+
| `item_int_feats_` | 14 | 0 | 3 | `item_int_feats_83`–`85` have ~83% nulls |
|
| 178 |
+
| `domain_a_seq_` | 9 | 0 | 0 | Very low null rate (0.5%) |
|
| 179 |
+
| `domain_b_seq_` | 14 | 0 | 0 | Low null rate (1.2%) |
|
| 180 |
+
| `domain_c_seq_` | 12 | 0 | 0 | Very low null rate (0.2%) |
|
| 181 |
+
| `domain_d_seq_` | 10 | 0 | 0 | Moderate null rate (8.0%) |
|
| 182 |
+
|
| 183 |
+
### High-Null Columns (>50% null)
|
| 184 |
+
|
| 185 |
+
| Column | Null Count | Null% |
|
| 186 |
|---|---|---|
|
| 187 |
+
| `user_int_feats_101` | 910 | 91.0% |
|
| 188 |
+
| `user_int_feats_102` | 877 | 87.7% |
|
| 189 |
+
| `user_int_feats_103` | 862 | 86.2% |
|
| 190 |
+
| `user_int_feats_109` | 854 | 85.4% |
|
| 191 |
+
| `user_int_feats_100` | 845 | 84.5% |
|
| 192 |
+
| `item_int_feats_83` | 832 | 83.2% |
|
| 193 |
+
| `item_int_feats_84` | 832 | 83.2% |
|
| 194 |
+
| `item_int_feats_85` | 832 | 83.2% |
|
| 195 |
+
| `user_int_feats_99` | 812 | 81.2% |
|
| 196 |
+
| `user_int_feats_86` | 692 | 69.2% |
|
| 197 |
+
| `user_int_feats_96` | 678 | 67.8% |
|
| 198 |
+
| `user_int_feats_60` | 592 | 59.2% |
|
| 199 |
+
| `user_int_feats_94` | 521 | 52.1% |
|
| 200 |
+
| `user_int_feats_108` | 516 | 51.6% |
|
| 201 |
+
| `user_int_feats_92` | 494 | 49.4% |
|
| 202 |
+
| `user_dense_feats_91` | 450 | 45.0% |
|
| 203 |
+
| `user_int_feats_91` | 450 | 45.0% |
|
| 204 |
+
| `item_int_feats_11` | 439 | 43.9% |
|
| 205 |
+
|
| 206 |
+
---
|
| 207 |
|
| 208 |
## Usage
|
| 209 |
|
|
|
|
| 211 |
import pyarrow.parquet as pq
|
| 212 |
import pandas as pd
|
| 213 |
|
| 214 |
+
# Read the parquet file
|
| 215 |
+
pf = pq.ParquetFile("data_1000/demo_1000.parquet")
|
| 216 |
table = pf.read()
|
| 217 |
df = table.to_pandas()
|
| 218 |
|
| 219 |
+
print(df.shape) # (1000, 120)
|
| 220 |
+
print(df.columns) # ['user_id', 'item_id', 'label_type', ...]
|
| 221 |
```
|
| 222 |
|
| 223 |
```python
|
| 224 |
+
# Check label distribution
|
| 225 |
print(df['label_type'].value_counts())
|
| 226 |
+
# 1 876
|
| 227 |
+
# 2 124
|
| 228 |
|
| 229 |
# Access a sequence feature
|
| 230 |
seq = df['domain_a_seq_38'].dropna().iloc[0]
|
| 231 |
print(type(seq), len(seq)) # <class 'numpy.ndarray'> variable length
|
| 232 |
+
|
| 233 |
+
# Access an embedding feature
|
| 234 |
+
emb = df['user_dense_feats_61'].dropna().iloc[0]
|
| 235 |
+
print(type(emb), len(emb)) # <class 'numpy.ndarray'> 256
|
| 236 |
```
|
| 237 |
|
| 238 |
+
```python
|
| 239 |
+
# Null analysis
|
| 240 |
+
null_pct = df.isnull().mean().sort_values(ascending=False)
|
| 241 |
+
print(null_pct[null_pct > 0.5]) # Columns with >50% nulls
|
| 242 |
+
```
|
| 243 |
|
| 244 |
+
## Relationship to Other Files
|
| 245 |
+
|
| 246 |
+
| File | Rows | Size | Compression | Description |
|
| 247 |
+
|---|---|---|---|---|
|
| 248 |
+
| `data_1000/demo_1000.parquet` | 1,000 | ~38 MB | None | **This dataset** — first 1,000 rows |
|
| 249 |
+
| `demo_data/demo_1000_0408.gz.parquet` | 1,016 | ~27 MB | Gzip | Full 1,016-row source dataset |
|
| 250 |
+
| `test_demo_data/sample_10.parquet` | 10 | ~548 KB | — | 10-row test sample |
|
| 251 |
+
|
| 252 |
+
## Key Notes
|
| 253 |
+
|
| 254 |
+
1. **Schema type difference**: Scalar integer features are stored as `double` (not `int64`) in this parquet file due to the presence of null values (pandas converts nullable int to float).
|
| 255 |
+
2. **No nested structs**: Unlike the older `sample_data.parquet`, all features are flat top-level columns.
|
| 256 |
+
3. **Sparse features**: 18 columns have >40% null values — handle missing data carefully during feature engineering.
|
| 257 |
+
4. **Sequence lengths vary widely**: Domain sequences range from length 1 to ~3,951, which may require truncation or padding for model input.
|
| 258 |
+
5. **Imbalanced labels**: ~87.6% label_type=1 vs ~12.4% label_type=2 — consider class balancing strategies.
|
sample_10.parquet → demo_1000.parquet
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ada35e38e8728009b8579182b9e53f4ae3ff135f73eca7eecd62c259d7ea45e
|
| 3 |
+
size 40279261
|