Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -14,54 +14,17 @@ tags:
|
|
| 14 |
size_categories:
|
| 15 |
- 1K<n<10K
|
| 16 |
pretty_name: NBA Quarter Events
|
| 17 |
-
dataset_description:
|
| 18 |
-
|
| 19 |
-
process (
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
data_files:
|
| 29 |
-
- split: train
|
| 30 |
-
path: data/train-*
|
| 31 |
-
- split: validation
|
| 32 |
-
path: data/validation-*
|
| 33 |
-
- split: test
|
| 34 |
-
path: data/test-*
|
| 35 |
-
dataset_info:
|
| 36 |
-
features:
|
| 37 |
-
- name: seq_idx
|
| 38 |
-
dtype: int64
|
| 39 |
-
- name: seq_len
|
| 40 |
-
dtype: int64
|
| 41 |
-
- name: description
|
| 42 |
-
dtype: string
|
| 43 |
-
- name: metadata
|
| 44 |
-
dtype: string
|
| 45 |
-
- name: time_since_start
|
| 46 |
-
list: float64
|
| 47 |
-
- name: time_since_last_event
|
| 48 |
-
list: float64
|
| 49 |
-
- name: type_event
|
| 50 |
-
list: string
|
| 51 |
-
- name: type_text
|
| 52 |
-
list: string
|
| 53 |
-
splits:
|
| 54 |
-
- name: train
|
| 55 |
-
num_bytes: 40959139
|
| 56 |
-
num_examples: 2296
|
| 57 |
-
- name: validation
|
| 58 |
-
num_bytes: 5104124
|
| 59 |
-
num_examples: 286
|
| 60 |
-
- name: test
|
| 61 |
-
num_bytes: 5095473
|
| 62 |
-
num_examples: 286
|
| 63 |
-
download_size: 8628235
|
| 64 |
-
dataset_size: 51158736
|
| 65 |
---
|
| 66 |
|
| 67 |
# NBA Quarter Events
|
|
@@ -70,7 +33,7 @@ dataset_info:
|
|
| 70 |
|
| 71 |
Curated per-quarter NBA play-by-play sequences from the 2024-25 regular season, designed for temporal point process (TPP) and marked temporal point process (MTPP) modeling. Each sequence represents one quarter (Q1–Q4) of a single game, with the prediction target being the **play type** of the next event. Sequences are filtered to keep only quarters with 90–110 events, ensuring consistent sequence lengths.
|
| 72 |
|
| 73 |
-
Rich narrative `type_text` descriptions provide fully descriptive context for each event — shot style and distance, free throw make/miss with sequence position, offensive/defensive rebound classification, team identification on every play, and timeout types — enabling an LLM to predict the next event type from the sequence alone.
|
| 74 |
|
| 75 |
- **Source:** [NBA Stats API](https://www.nba.com/stats/)
|
| 76 |
- **Season:** 2024–25 Regular Season
|
|
@@ -140,7 +103,6 @@ Each event's `type_text` is a natural language sentence combining multiple conte
|
|
| 140 |
- **Rebound classification**: Offensive or defensive, classified via subType and description parsing (covers ~95%+ of rebounds)
|
| 141 |
- **Timeout team & type**: Team identified via `location` field (home/visitor), with timeout subtype (regular, mandatory)
|
| 142 |
- **Foul subtype**: Lowercased foul type (shooting, personal, offensive, loose ball, etc.)
|
| 143 |
-
- **Game clock**: Quarter and time remaining
|
| 144 |
- **Score context**: Leading team, margin, game state (tight game, comfortable margin, blowout)
|
| 145 |
- **Momentum**: Scoring runs with full team name (e.g., "Orlando Magic currently on a 6-0 scoring run"), pattern signals (e.g., "shooting 3 for 5 recently")
|
| 146 |
|
|
@@ -149,41 +111,39 @@ Each event's `type_text` is a natural language sentence combining multiple conte
|
|
| 149 |
```
|
| 150 |
# Made 2pt — includes shot style, distance, zone, team name
|
| 151 |
"J. Robinson-Earl. makes a 2-point putback layup from 3 feet near the basket
|
| 152 |
-
for the New Orleans Pelicans.
|
| 153 |
-
early in the game."
|
| 154 |
|
| 155 |
# Made 3pt
|
| 156 |
"K. Ware, Heat center. makes a 3-point jump from 28 feet from the right wing
|
| 157 |
-
for the Miami Heat.
|
| 158 |
-
comfortable margin."
|
| 159 |
|
| 160 |
# Missed field goal — includes 2pt/3pt distinction and shot style
|
| 161 |
"J. Robinson-Earl. misses a 2-point layup from 6 feet in the paint for the
|
| 162 |
-
New Orleans Pelicans.
|
| 163 |
|
| 164 |
# Free throw miss — includes make/miss and sequence position (1 of 2)
|
| 165 |
"J. Alvarado, Knicks guard. misses free throw 1 of 2 for the New Orleans
|
| 166 |
-
Pelicans.
|
| 167 |
|
| 168 |
# Rebound — classified as offensive/defensive
|
| 169 |
"G. Bitadze, Magic center-forward. grabs an offensive rebound for the Orlando
|
| 170 |
-
Magic.
|
| 171 |
|
| 172 |
# Turnover — subtype integrated naturally into description
|
| 173 |
"B. Ingram, Raptors forward. commits a bad pass turnover for the New Orleans
|
| 174 |
-
Pelicans.
|
| 175 |
|
| 176 |
# Foul — lowercased subtype
|
| 177 |
"F. Wagner, Magic forward. commits a personal foul for the Orlando Magic.
|
| 178 |
-
|
| 179 |
|
| 180 |
# Steal
|
| 181 |
"K. Caldwell-Pope, Grizzlies guard. records a steal for the Orlando Magic.
|
| 182 |
-
|
| 183 |
|
| 184 |
# Timeout — team identified with full name, includes timeout type
|
| 185 |
-
"the New Orleans Pelicans call a regular timeout.
|
| 186 |
-
|
| 187 |
```
|
| 188 |
|
| 189 |
## Curation Filters
|
|
@@ -211,9 +171,9 @@ Quarters are selected from complete games (all 4 regulation quarters present) wi
|
|
| 211 |
"time_since_last_event": [0.0, 0.3167, 0.2167, ...],
|
| 212 |
"type_event": ["foul", "turnover", "made_2pt", ...],
|
| 213 |
"type_text": [
|
| 214 |
-
"M. Bridges, Knicks guard-forward. commits a personal take foul for the New York Knicks.
|
| 215 |
-
"commits a shot clock turnover.
|
| 216 |
-
"C. Payne, 76ers guard. makes a 2-point driving finger roll layup from 5 feet in the paint for the New York Knicks.
|
| 217 |
...
|
| 218 |
]
|
| 219 |
}
|
|
|
|
| 14 |
size_categories:
|
| 15 |
- 1K<n<10K
|
| 16 |
pretty_name: NBA Quarter Events
|
| 17 |
+
dataset_description: >-
|
| 18 |
+
Curated per-quarter NBA play-by-play sequences from the 2024-25 regular season,
|
| 19 |
+
designed for temporal point process (TPP) and marked temporal point process (MTPP)
|
| 20 |
+
modeling. Each sequence represents one quarter (Q1-Q4) of a single game, with the
|
| 21 |
+
prediction target being the play type of the next event. Sequences are filtered to
|
| 22 |
+
keep only quarters with 90-110 events, ensuring consistent sequence lengths. Rich
|
| 23 |
+
narrative type_text descriptions provide fully descriptive context — shot style and
|
| 24 |
+
distance, make/miss results, offensive/defensive rebound classification, full team
|
| 25 |
+
names on every event, and timeout types — enabling an LLM to predict the next event
|
| 26 |
+
type from the sequence alone. Quarter and time information are captured in metadata
|
| 27 |
+
and time_since_start fields rather than repeated in type_text, reducing token waste.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
---
|
| 29 |
|
| 30 |
# NBA Quarter Events
|
|
|
|
| 33 |
|
| 34 |
Curated per-quarter NBA play-by-play sequences from the 2024-25 regular season, designed for temporal point process (TPP) and marked temporal point process (MTPP) modeling. Each sequence represents one quarter (Q1–Q4) of a single game, with the prediction target being the **play type** of the next event. Sequences are filtered to keep only quarters with 90–110 events, ensuring consistent sequence lengths.
|
| 35 |
|
| 36 |
+
Rich narrative `type_text` descriptions provide fully descriptive context for each event — shot style and distance, free throw make/miss with sequence position, offensive/defensive rebound classification, team identification on every play, and timeout types — enabling an LLM to predict the next event type from the sequence alone. Quarter and time-remaining information is not repeated in `type_text` since it is already captured in `metadata.quarter` and `time_since_start`.
|
| 37 |
|
| 38 |
- **Source:** [NBA Stats API](https://www.nba.com/stats/)
|
| 39 |
- **Season:** 2024–25 Regular Season
|
|
|
|
| 103 |
- **Rebound classification**: Offensive or defensive, classified via subType and description parsing (covers ~95%+ of rebounds)
|
| 104 |
- **Timeout team & type**: Team identified via `location` field (home/visitor), with timeout subtype (regular, mandatory)
|
| 105 |
- **Foul subtype**: Lowercased foul type (shooting, personal, offensive, loose ball, etc.)
|
|
|
|
| 106 |
- **Score context**: Leading team, margin, game state (tight game, comfortable margin, blowout)
|
| 107 |
- **Momentum**: Scoring runs with full team name (e.g., "Orlando Magic currently on a 6-0 scoring run"), pattern signals (e.g., "shooting 3 for 5 recently")
|
| 108 |
|
|
|
|
| 111 |
```
|
| 112 |
# Made 2pt — includes shot style, distance, zone, team name
|
| 113 |
"J. Robinson-Earl. makes a 2-point putback layup from 3 feet near the basket
|
| 114 |
+
for the New Orleans Pelicans. Orlando Magic lead 12-6. early in the game."
|
|
|
|
| 115 |
|
| 116 |
# Made 3pt
|
| 117 |
"K. Ware, Heat center. makes a 3-point jump from 28 feet from the right wing
|
| 118 |
+
for the Miami Heat. Milwaukee Bucks lead 81-65 with a comfortable margin."
|
|
|
|
| 119 |
|
| 120 |
# Missed field goal — includes 2pt/3pt distinction and shot style
|
| 121 |
"J. Robinson-Earl. misses a 2-point layup from 6 feet in the paint for the
|
| 122 |
+
New Orleans Pelicans. The game is tied. early in the game."
|
| 123 |
|
| 124 |
# Free throw miss — includes make/miss and sequence position (1 of 2)
|
| 125 |
"J. Alvarado, Knicks guard. misses free throw 1 of 2 for the New Orleans
|
| 126 |
+
Pelicans. The game is tied."
|
| 127 |
|
| 128 |
# Rebound — classified as offensive/defensive
|
| 129 |
"G. Bitadze, Magic center-forward. grabs an offensive rebound for the Orlando
|
| 130 |
+
Magic. The game is tied. early in the game."
|
| 131 |
|
| 132 |
# Turnover — subtype integrated naturally into description
|
| 133 |
"B. Ingram, Raptors forward. commits a bad pass turnover for the New Orleans
|
| 134 |
+
Pelicans. The game is tied. early in the game."
|
| 135 |
|
| 136 |
# Foul — lowercased subtype
|
| 137 |
"F. Wagner, Magic forward. commits a personal foul for the Orlando Magic.
|
| 138 |
+
The game is tied. early in the game."
|
| 139 |
|
| 140 |
# Steal
|
| 141 |
"K. Caldwell-Pope, Grizzlies guard. records a steal for the Orlando Magic.
|
| 142 |
+
The game is tied. early in the game."
|
| 143 |
|
| 144 |
# Timeout — team identified with full name, includes timeout type
|
| 145 |
+
"the New Orleans Pelicans call a regular timeout. The game is tied. early in
|
| 146 |
+
the game. Orlando Magic currently on a 6-0 scoring run."
|
| 147 |
```
|
| 148 |
|
| 149 |
## Curation Filters
|
|
|
|
| 171 |
"time_since_last_event": [0.0, 0.3167, 0.2167, ...],
|
| 172 |
"type_event": ["foul", "turnover", "made_2pt", ...],
|
| 173 |
"type_text": [
|
| 174 |
+
"M. Bridges, Knicks guard-forward. commits a personal take foul for the New York Knicks. The game is tied. early in the game.",
|
| 175 |
+
"commits a shot clock turnover. The game is tied. early in the game.",
|
| 176 |
+
"C. Payne, 76ers guard. makes a 2-point driving finger roll layup from 5 feet in the paint for the New York Knicks. New York Knicks lead 2-0 in a tight game. early in the game.",
|
| 177 |
...
|
| 178 |
]
|
| 179 |
}
|