add ball_coords
Browse files
nba_tracking_data_15_16.py
CHANGED
@@ -88,11 +88,11 @@ class NbaTracking(datasets.GeneratorBasedBuilder):
|
|
88 |
"quarter": datasets.Value("int64"),
|
89 |
"game_clock": datasets.Value("float32"),
|
90 |
"shot_clock": datasets.Value("float32"),
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
# "player_coordinates": datasets.Sequence(
|
97 |
# {
|
98 |
# "teamid": datasets.Value("int64"),
|
@@ -179,5 +179,6 @@ class NbaTracking(datasets.GeneratorBasedBuilder):
|
|
179 |
"eventid": event_id,
|
180 |
"quarter": quarter,
|
181 |
"game_clock": game_clock,
|
182 |
-
"shot_clock": shot_clock
|
|
|
183 |
}
|
|
|
88 |
"quarter": datasets.Value("int64"),
|
89 |
"game_clock": datasets.Value("float32"),
|
90 |
"shot_clock": datasets.Value("float32"),
|
91 |
+
"ball_coordinates": datasets.Sequence(
|
92 |
+
datasets.Value("float32"),
|
93 |
+
datasets.Value("float32"),
|
94 |
+
datasets.Value("float32")
|
95 |
+
),
|
96 |
# "player_coordinates": datasets.Sequence(
|
97 |
# {
|
98 |
# "teamid": datasets.Value("int64"),
|
|
|
179 |
"eventid": event_id,
|
180 |
"quarter": quarter,
|
181 |
"game_clock": game_clock,
|
182 |
+
"shot_clock": shot_clock,
|
183 |
+
"ball_coordinates": ball_coords
|
184 |
}
|