XiaoBB commited on
Commit
40f3e95
·
verified ·
1 Parent(s): 2b93bdc

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +23 -54
README.md CHANGED
@@ -11,39 +11,6 @@ tags:
11
  - marked-temporal-point-process
12
  size_categories:
13
  - n<1K
14
- configs:
15
- - config_name: default
16
- data_files:
17
- - split: test
18
- path: data/test-*
19
- dataset_info:
20
- features:
21
- - name: seq_idx
22
- dtype: int64
23
- - name: seq_len
24
- dtype: int64
25
- - name: type_category
26
- dtype: string
27
- - name: span_weeks
28
- dtype: float64
29
- - name: description
30
- dtype: string
31
- - name: metadata
32
- dtype: string
33
- - name: time_since_start
34
- list: float64
35
- - name: time_since_last_event
36
- list: float64
37
- - name: type_event
38
- list: string
39
- - name: type_text
40
- list: string
41
- splits:
42
- - name: test
43
- num_bytes: 8869501
44
- num_examples: 311
45
- download_size: 4326504
46
- dataset_size: 8869501
47
  ---
48
 
49
  # Amazon Product Review Events
@@ -57,9 +24,9 @@ Sequences are aggressively filtered to prevent pattern exploitation — uninform
57
  - **Source:** [Amazon Reviews 2023](https://huggingface.co/datasets/McAuley-Lab/Amazon-Reviews-2023) (McAuley Lab, HuggingFace)
58
  - **Categories:** Electronics, Books, Home & Kitchen, Beauty & Personal Care
59
  - **Grouping:** Events grouped by user within a single product category
60
- - **Sequences:** 279
61
- - **Sequence length:** 50–78 events per sequence (mean: 58.7)
62
- - **Event types:** 40 sub-categories
63
  - **Time unit:** weeks
64
 
65
  ## Schema
@@ -77,19 +44,19 @@ Each record is a dictionary with 10 fields:
77
  | `time_since_start` | list[float] | Time since the first event (in weeks) |
78
  | `time_since_last_event` | list[float] | Time since the previous event (in weeks) |
79
  | `type_event` | list[str] | Product sub-category slug (see below) |
80
- | `type_text` | list[str] | Natural language description: product title, reviewer's star rating, review title, and review body. HTML tags, entities, embedded media tags, and URLs are stripped. |
81
 
82
  ## Event Types (40 sub-categories)
83
 
84
- 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.
85
 
86
- **Home & Kitchen** (205 sequences, 10 types): `kitchen_dining` (2,719), `home_d_cor_products` (2,458), `bedding` (1,949), `furniture` (1,241), `storage_organization` (1,081), `bath` (1,079), `amazon_home` (539), `heating_cooling_air_quality` (317), `wall_art` (304), `seasonal_d_cor` (288)
87
 
88
- **Beauty & Personal Care** (57 sequences, 10 types): `hair_care` (696), `skin_care` (693), `makeup` (642), `tools_accessories` (483), `foot_hand_nail_care` (437), `personal_care` (163), `shave_hair_removal` (127), `fragrance` (108), `salon_spa` (80), `men_s_grooming` (3)
89
 
90
- **Electronics** (11 sequences, 10 types): `computers_accessories` (131), `television_video` (113), `home_audio` (98), `camera_photo` (73), `portable_audio_video` (58), `accessories_supplies` (43), `headphones_earbuds_accessories` (39), `security_surveillance` (38), `car_vehicle_electronics` (29), `all_electronics` (12)
91
 
92
- **Books** (6 sequences, 10 types): `arts_photography` (55), `literature_fiction` (48), `history` (47), `books` (46), `children_s_books` (46), `biographies_memoirs` (29), `crafts_hobbies_home` (29), `mystery_thriller_suspense` (22), `politics_social_sciences` (7), `christian_books_bibles` (7)
93
 
94
  ## Curation Filters
95
 
@@ -101,35 +68,37 @@ Sequences are selected to represent moderately prolific reviewers with diverse,
101
  | `max-events` | 80 | Max reviews per user sequence |
102
  | `min-types` | 3 | At least 3 distinct sub-category types |
103
  | `min-span` | 6 months | Exclude sequences spanning less than 6 months |
104
- | `max-span` | 60 months | Exclude sequences spanning 60+ months |
105
  | `max-sub-categories` | 10 | Top 10 sub-categories kept per parent category; rest mapped to `"other"` |
106
  | `min-subcat-count` | 50 | Sub-categories with fewer than 50 products mapped to `"other"` |
 
 
107
  | Remove "other" events | — | All `"other"` events stripped; `time_since_last_event` recomputed |
108
  | `max-dominant-ratio` | 0.30 | Drop sequences where any single type exceeds 30% of events |
109
  | `max-repeat-ratio` | 0.35 | Drop sequences where consecutive same-type rate exceeds 35% |
110
 
111
  ## Event Text
112
 
113
- Each event's `type_text` contains product and review details without explicit sub-category labels:
114
 
115
- > The user reviewed a kitchen & dining product, "Instant Pot Duo 7-in-1 Electric Pressure Cooker", and gave it 5 out of 5 stars. Their review titled "Best kitchen purchase ever" says: This has completely changed how I cook dinner. The pressure cooking function is incredible and saves so much time.
116
 
117
- The model must learn to predict the product sub-category from review content, product titles, and rating patterns.
118
 
119
  ## Example
120
 
121
  ```json
122
  {
123
  "seq_idx": 0,
124
- "seq_len": 55,
125
  "type_category": "Electronics",
126
- "span_weeks": 154.43,
127
- "description": "Amazon Electronics review timeline for a user spanning Mar 2020 to Feb 2023. This sequence tracks the user's product review activity within the Electronics category on Amazon.",
128
- "metadata": "{\"user_id\": \"AFXCEYAE...\", \"parent_category\": \"Electronics\", \"num_reviews\": 97, \"num_sub_categories\": 10, \"date_range_start\": \"2020-03-03T14:23:19.813000+00:00\", \"date_range_end\": \"2023-02-17T14:45:31.498000+00:00\", \"span_weeks\": 154.43, \"time_unit\": \"weeks\"}",
129
- "time_since_start": [0.0, 0.58, 1.12, ...],
130
- "time_since_last_event": [0.0, 0.58, 0.54, ...],
131
- "type_event": ["home_audio", "computers_accessories", "portable_audio_video", ...],
132
- "type_text": ["The user reviewed a home audio product, \"eoocvt 9.85ft T-Shape Car Mobile Radio DC Power Cable...\", and gave it 5 out of 5 stars. ...", ...]
133
  }
134
  ```
135
 
 
11
  - marked-temporal-point-process
12
  size_categories:
13
  - n<1K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  ---
15
 
16
  # Amazon Product Review Events
 
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:** 311
28
+ - **Sequence length:** 50–78 events per sequence (mean: 58.3)
29
+ - **Event types:** 40 sub-categories (no "other")
30
  - **Time unit:** weeks
31
 
32
  ## Schema
 
44
  | `time_since_start` | list[float] | Time since the first event (in weeks) |
45
  | `time_since_last_event` | list[float] | Time since the previous event (in weeks) |
46
  | `type_event` | list[str] | Product sub-category slug (see below) |
47
+ | `type_text` | list[str] | Natural language description with full category path (excluding root), product title, star rating, review title, and review body. HTML tags, entities, embedded media tags, and URLs are stripped. |
48
 
49
  ## Event Types (40 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. Products without a proper category hierarchy (e.g., generic "All Electronics") are excluded.
52
 
53
+ **Home & Kitchen** (211 sequences, 10 types): `kitchen_dining` (2,821), `home_d_cor_products` (2,504), `bedding` (2,033), `furniture` (1,343), `bath` (1,106), `storage_organization` (1,061), `heating_cooling_air_quality` (390), `wall_art` (345), `seasonal_d_cor` (304), `event_party_supplies` (239)
54
 
55
+ **Beauty & Personal Care** (76 sequences, 10 types): `hair_care` (928), `skin_care` (895), `makeup` (892), `tools_accessories` (656), `foot_hand_nail_care` (609), `personal_care` (206), `shave_hair_removal` (160), `fragrance` (144), `salon_spa` (90), `men_s_grooming` (10)
56
 
57
+ **Electronics** (18 sequences, 10 types): `computers_accessories` (224), `television_video` (183), `home_audio` (142), `camera_photo` (110), `portable_audio_video` (105), `headphones_earbuds_accessories` (79), `car_vehicle_electronics` (74), `accessories_supplies` (65), `security_surveillance` (59), `gps_finders_accessories` (9)
58
 
59
+ **Books** (6 sequences, 10 types): `literature_fiction` (82), `history` (56), `biographies_memoirs` (41), `children_s_books` (40), `mystery_thriller_suspense` (30), `teen_young_adult` (23), `arts_photography` (22), `christian_books_bibles` (18), `crafts_hobbies_home` (12), `politics_social_sciences` (8)
60
 
61
  ## Curation Filters
62
 
 
68
  | `max-events` | 80 | Max reviews per user sequence |
69
  | `min-types` | 3 | At least 3 distinct sub-category types |
70
  | `min-span` | 6 months | Exclude sequences spanning less than 6 months |
71
+ | `max-span` | 72 months | Exclude sequences spanning 72+ months |
72
  | `max-sub-categories` | 10 | Top 10 sub-categories kept per parent category; rest mapped to `"other"` |
73
  | `min-subcat-count` | 50 | Sub-categories with fewer than 50 products mapped to `"other"` |
74
+ | Verified purchase only | — | Only verified purchase reviews are included |
75
+ | Exclude catch-all categories | — | Products without proper sub-category hierarchy (e.g., "All Electronics") are excluded |
76
  | Remove "other" events | — | All `"other"` events stripped; `time_since_last_event` recomputed |
77
  | `max-dominant-ratio` | 0.30 | Drop sequences where any single type exceeds 30% of events |
78
  | `max-repeat-ratio` | 0.35 | Drop sequences where consecutive same-type rate exceeds 35% |
79
 
80
  ## Event Text
81
 
82
+ Each event's `type_text` is a natural language sentence containing the full category path (excluding the root category), product title, star rating, and review content:
83
 
84
+ > The user reviewed "Instant Pot Duo 7-in-1 Electric Pressure Cooker" under Kitchen & Dining > Small Appliances > Multi-Cookers, rating it 5 out of 5 stars. Their review titled "Best kitchen purchase ever" says: This has completely changed how I cook dinner. The pressure cooking function is incredible and saves so much time.
85
 
86
+ The model must learn to predict the product sub-category from review content, product titles, category paths, and rating patterns.
87
 
88
  ## Example
89
 
90
  ```json
91
  {
92
  "seq_idx": 0,
93
+ "seq_len": 61,
94
  "type_category": "Electronics",
95
+ "span_weeks": 269.34,
96
+ "description": "Amazon Electronics review timeline for a user spanning May 2015 to Jul 2020. This sequence tracks the user's product review activity within the Electronics category on Amazon.",
97
+ "metadata": "{\"user_id\": \"AF7S6K2L...\", \"parent_category\": \"Electronics\", \"num_reviews\": 76, \"num_sub_categories\": 10, ...}",
98
+ "time_since_start": [0.0, 0.0016, 0.0024, ...],
99
+ "time_since_last_event": [0.0, 0.0016, 0.0008, ...],
100
+ "type_event": ["camera_photo", "computers_accessories", "accessories_supplies", ...],
101
+ "type_text": ["The user reviewed \"D-Link DCS-5222L HD Pan & Tilt Wi-Fi Camera\" under Camera & Photo > Video Surveillance > Surveillance Cameras > Dome Cameras, rating it 5 out of 5 stars. ...", ...]
102
  }
103
  ```
104