Datasets:
Tasks:
Time Series Forecasting
Languages:
English
Size:
< 1K
Tags:
temporal-point-process
event-sequences
github
software-engineering
developer-workflows
marked-temporal-point-process
License:
Update dataset card: anti-exploitation filters, 286 sequences
Browse files
README.md
CHANGED
|
@@ -7,138 +7,104 @@ task_categories:
|
|
| 7 |
tags:
|
| 8 |
- temporal-point-process
|
| 9 |
- event-sequences
|
| 10 |
-
-
|
| 11 |
-
- software-engineering
|
| 12 |
-
- developer-workflows
|
| 13 |
- marked-temporal-point-process
|
| 14 |
size_categories:
|
| 15 |
- n<1K
|
| 16 |
-
configs:
|
| 17 |
-
- config_name: default
|
| 18 |
-
data_files:
|
| 19 |
-
- split: test
|
| 20 |
-
path: data/test-*
|
| 21 |
-
dataset_info:
|
| 22 |
-
features:
|
| 23 |
-
- name: seq_idx
|
| 24 |
-
dtype: int64
|
| 25 |
-
- name: seq_len
|
| 26 |
-
dtype: int64
|
| 27 |
-
- name: type_category
|
| 28 |
-
dtype: string
|
| 29 |
-
- name: span_weeks
|
| 30 |
-
dtype: float64
|
| 31 |
-
- name: description
|
| 32 |
-
dtype: string
|
| 33 |
-
- name: metadata
|
| 34 |
-
dtype: string
|
| 35 |
-
- name: time_since_start
|
| 36 |
-
list: float64
|
| 37 |
-
- name: time_since_last_event
|
| 38 |
-
list: float64
|
| 39 |
-
- name: type_event
|
| 40 |
-
list: string
|
| 41 |
-
- name: type_text
|
| 42 |
-
list: string
|
| 43 |
-
splits:
|
| 44 |
-
- name: test
|
| 45 |
-
num_bytes: 17358437
|
| 46 |
-
num_examples: 286
|
| 47 |
-
download_size: 9705164
|
| 48 |
-
dataset_size: 17358437
|
| 49 |
---
|
| 50 |
|
| 51 |
-
#
|
| 52 |
|
| 53 |
-
Curated
|
|
|
|
|
|
|
| 54 |
|
| 55 |
## Dataset Description
|
| 56 |
|
| 57 |
-
- **Source:** [
|
| 58 |
-
- **
|
| 59 |
-
- **Grouping:** Events grouped by user
|
| 60 |
-
- **Sequences:**
|
| 61 |
-
- **Sequence length:** 80
|
| 62 |
-
- **
|
| 63 |
-
- **
|
| 64 |
|
| 65 |
## Schema
|
| 66 |
|
| 67 |
-
Each record is a dictionary with
|
| 68 |
|
| 69 |
| Field | Type | Description |
|
| 70 |
|---|---|---|
|
| 71 |
| `seq_idx` | int | Sequence index |
|
| 72 |
| `seq_len` | int | Number of events in the sequence |
|
| 73 |
-
| `
|
| 74 |
-
| `
|
| 75 |
-
| `
|
| 76 |
-
| `
|
| 77 |
-
| `
|
|
|
|
|
|
|
| 78 |
| `type_text` | list[str] | Natural language description of each event |
|
| 79 |
|
| 80 |
-
## Event Types (
|
|
|
|
|
|
|
| 81 |
|
| 82 |
-
|
|
| 83 |
|---|---|
|
| 84 |
-
| `
|
| 85 |
-
| `
|
| 86 |
-
| `
|
| 87 |
-
| `
|
| 88 |
-
| `push` | Code pushed (with commit messages) |
|
| 89 |
-
| `release` | Release published |
|
| 90 |
-
| `pr_reviewed` | PR approved or changes requested |
|
| 91 |
-
| `comment` | Comment on issue, PR, or review |
|
| 92 |
|
| 93 |
## Curation Filters
|
| 94 |
|
| 95 |
-
Sequences are selected to represent moderately
|
| 96 |
|
| 97 |
| Filter | Value | Description |
|
| 98 |
|---|---|---|
|
| 99 |
-
| `min-
|
| 100 |
-
| `max-
|
| 101 |
-
| `min-
|
| 102 |
-
| `
|
| 103 |
-
| `
|
| 104 |
-
| `
|
| 105 |
-
| `
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
- Consecutive duplicate events (same type + text) are deduplicated
|
| 113 |
-
|
| 114 |
-
## Key Difference from Repository Events
|
| 115 |
-
|
| 116 |
-
| | User Events | Repo Events |
|
| 117 |
|---|---|---|
|
| 118 |
-
|
|
| 119 |
-
|
|
| 120 |
-
|
|
| 121 |
-
|
|
|
|
|
|
|
|
| 122 |
|
| 123 |
## Example
|
| 124 |
|
| 125 |
```json
|
| 126 |
{
|
| 127 |
"seq_idx": 0,
|
| 128 |
-
"seq_len":
|
| 129 |
-
"
|
| 130 |
-
"
|
| 131 |
-
"
|
| 132 |
-
"
|
| 133 |
-
"
|
| 134 |
-
"
|
|
|
|
|
|
|
| 135 |
}
|
| 136 |
```
|
| 137 |
|
| 138 |
## Intended Use
|
| 139 |
|
| 140 |
- Training and evaluating temporal point process models
|
| 141 |
-
- Studying
|
| 142 |
- Benchmarking next-event prediction and event forecasting
|
| 143 |
- Modeling marked temporal point processes with rich text marks
|
| 144 |
|
|
@@ -147,11 +113,11 @@ Additional processing:
|
|
| 147 |
If you use this dataset, please cite:
|
| 148 |
|
| 149 |
```bibtex
|
| 150 |
-
@dataset{
|
| 151 |
-
title={
|
| 152 |
author={XiaoBB},
|
| 153 |
year={2024},
|
| 154 |
-
url={https://huggingface.co/datasets/XiaoBB/
|
| 155 |
-
note={Curated from
|
| 156 |
}
|
| 157 |
```
|
|
|
|
| 7 |
tags:
|
| 8 |
- temporal-point-process
|
| 9 |
- event-sequences
|
| 10 |
+
- amazon-reviews
|
|
|
|
|
|
|
| 11 |
- marked-temporal-point-process
|
| 12 |
size_categories:
|
| 13 |
- n<1K
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
+
# Amazon Product Review Events
|
| 17 |
|
| 18 |
+
Curated per-user product review sequences from [Amazon Reviews 2023](https://huggingface.co/datasets/McAuley-Lab/Amazon-Reviews-2023) (McAuley Lab), designed for temporal point process (TPP) and marked temporal point process (MTPP) modeling. Each sequence captures a single user's chronologically-ordered reviews within one product category.
|
| 19 |
+
|
| 20 |
+
Sequences are aggressively filtered to prevent pattern exploitation — uninformative "other" events are removed, and sequences with dominant-type or consecutive-repeat shortcuts are dropped to ensure models must perform genuine reasoning.
|
| 21 |
|
| 22 |
## Dataset Description
|
| 23 |
|
| 24 |
+
- **Source:** [Amazon Reviews 2023](https://huggingface.co/datasets/McAuley-Lab/Amazon-Reviews-2023) (McAuley Lab, HuggingFace)
|
| 25 |
+
- **Categories:** Electronics, Books, Home & Kitchen, Beauty & Personal Care
|
| 26 |
+
- **Grouping:** Events grouped by user within a single product category
|
| 27 |
+
- **Sequences:** 286
|
| 28 |
+
- **Sequence length:** 80–100 events per sequence (mean: 88.9)
|
| 29 |
+
- **Event types:** 54 sub-categories (no "other")
|
| 30 |
+
- **Time unit:** days
|
| 31 |
|
| 32 |
## Schema
|
| 33 |
|
| 34 |
+
Each record is a dictionary with 10 fields:
|
| 35 |
|
| 36 |
| Field | Type | Description |
|
| 37 |
|---|---|---|
|
| 38 |
| `seq_idx` | int | Sequence index |
|
| 39 |
| `seq_len` | int | Number of events in the sequence |
|
| 40 |
+
| `type_category` | str | Parent product category (e.g., `"Electronics"`) |
|
| 41 |
+
| `span_weeks` | float | Total time span of the sequence (weeks) |
|
| 42 |
+
| `description` | str | Category, user activity window, and review period |
|
| 43 |
+
| `metadata` | str (JSON) | `user_id`, `parent_category`, `num_reviews`, `num_sub_categories`, `date_range_start`, `date_range_end`, `span_weeks`, `time_unit` |
|
| 44 |
+
| `time_since_start` | list[float] | Time since the first event (in days) |
|
| 45 |
+
| `time_since_last_event` | list[float] | Time since the previous event (in days) |
|
| 46 |
+
| `type_event` | list[str] | Product sub-category slug (see below) |
|
| 47 |
| `type_text` | list[str] | Natural language description of each event |
|
| 48 |
|
| 49 |
+
## Event Types (54 sub-categories)
|
| 50 |
+
|
| 51 |
+
Event types are the 2nd-level product sub-categories, normalized to lowercase slugs. Rare sub-categories are mapped to `"other"` during initial curation, and all `"other"` events are then stripped from the final sequences. Examples:
|
| 52 |
|
| 53 |
+
| Category | Example Sub-categories |
|
| 54 |
|---|---|
|
| 55 |
+
| Electronics | `computers_accessories`, `camera_photo`, `television_video`, `headphones_earbuds_accessories`, `home_audio` |
|
| 56 |
+
| Books | `literature_fiction`, `mystery_thriller_suspense`, `children_s_books`, `teen_young_adult`, `romance` |
|
| 57 |
+
| Home & Kitchen | `kitchen_dining`, `home_d_cor_products`, `bedding`, `storage_organization`, `furniture` |
|
| 58 |
+
| Beauty & Personal Care | `hair_care`, `skin_care`, `foot_hand_nail_care`, `makeup`, `tools_accessories` |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
## Curation Filters
|
| 61 |
|
| 62 |
+
Sequences are selected to represent moderately prolific reviewers with diverse, non-trivial sub-category distributions:
|
| 63 |
|
| 64 |
| Filter | Value | Description |
|
| 65 |
|---|---|---|
|
| 66 |
+
| `min-events` | 80 | Min reviews per user sequence |
|
| 67 |
+
| `max-events` | 100 | Max reviews per user sequence |
|
| 68 |
+
| `min-types` | 3 | At least 3 distinct sub-category types |
|
| 69 |
+
| `min-span` | 3 months | Exclude sequences spanning less than 3 months |
|
| 70 |
+
| `max-span` | 60 months | Exclude sequences spanning 60+ months |
|
| 71 |
+
| `max-sub-categories` | 15 | Top 15 sub-categories kept per parent category; rest mapped to `"other"` |
|
| 72 |
+
| `min-subcat-count` | 50 | Sub-categories with fewer than 50 products mapped to `"other"` |
|
| 73 |
+
|
| 74 |
+
### Anti-Exploitation Filters
|
| 75 |
+
|
| 76 |
+
These filters are applied after initial curation to prevent models from exploiting simple statistical shortcuts:
|
| 77 |
+
|
| 78 |
+
| Filter | Value | Description |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
|---|---|---|
|
| 80 |
+
| Remove "other" events | — | All events with `type_event == "other"` are stripped; `time_since_last_event` is recomputed |
|
| 81 |
+
| Re-check min-events/min-types | 80 / 3 | Sequences re-validated after "other" removal |
|
| 82 |
+
| `max-dominant-ratio` | 0.35 | Drop sequences where any single type exceeds 35% of events |
|
| 83 |
+
| `max-repeat-ratio` | 0.30 | Drop sequences where consecutive same-type rate exceeds 30% |
|
| 84 |
+
|
| 85 |
+
**Filtering pipeline:** 2,537 → remove "other" events → re-check length (−585) and type diversity (−11) → dominant ratio (−1,550) → repeat ratio (−105) → **286 sequences**.
|
| 86 |
|
| 87 |
## Example
|
| 88 |
|
| 89 |
```json
|
| 90 |
{
|
| 91 |
"seq_idx": 0,
|
| 92 |
+
"seq_len": 98,
|
| 93 |
+
"type_category": "Electronics",
|
| 94 |
+
"span_weeks": 61.33,
|
| 95 |
+
"description": "Amazon Electronics review timeline for a user spanning Feb 2022 to Apr 2023. This sequence tracks the user's product review activity within the Electronics category on Amazon.",
|
| 96 |
+
"metadata": "{\"user_id\": \"AHJKYQVJ...\", \"parent_category\": \"Electronics\", \"num_reviews\": 100, \"num_sub_categories\": 12, \"date_range_start\": \"2022-02-17T08:05:52.291000+00:00\", \"date_range_end\": \"2023-04-22T15:21:09.246000+00:00\", \"span_weeks\": 61.33, \"time_unit\": \"weeks\"}",
|
| 97 |
+
"time_since_start": [0.0, 29.24, 31.50, ...],
|
| 98 |
+
"time_since_last_event": [0.0, 29.24, 2.26, ...],
|
| 99 |
+
"type_event": ["camera_photo", "portable_audio_video", "video_projectors", ...],
|
| 100 |
+
"type_text": ["Product: \"Selfie Ring Light with Tripod Stand...\". 5/5 stars...", ...]
|
| 101 |
}
|
| 102 |
```
|
| 103 |
|
| 104 |
## Intended Use
|
| 105 |
|
| 106 |
- Training and evaluating temporal point process models
|
| 107 |
+
- Studying consumer purchasing patterns across product sub-categories
|
| 108 |
- Benchmarking next-event prediction and event forecasting
|
| 109 |
- Modeling marked temporal point processes with rich text marks
|
| 110 |
|
|
|
|
| 113 |
If you use this dataset, please cite:
|
| 114 |
|
| 115 |
```bibtex
|
| 116 |
+
@dataset{amazon_review_events_2024,
|
| 117 |
+
title={Amazon Product Review Events},
|
| 118 |
author={XiaoBB},
|
| 119 |
year={2024},
|
| 120 |
+
url={https://huggingface.co/datasets/XiaoBB/amazon_review_events},
|
| 121 |
+
note={Curated from Amazon Reviews 2023 (McAuley Lab)}
|
| 122 |
}
|
| 123 |
```
|