dcayton commited on
Commit
648f1af
·
verified ·
1 Parent(s): 2775b47
Files changed (1) hide show
  1. nba_tracking_data_15_16.py +15 -15
nba_tracking_data_15_16.py CHANGED
@@ -91,11 +91,11 @@ class NbaTracking(datasets.GeneratorBasedBuilder):
91
  "quarter": datasets.Value("int64"),
92
  "game_clock": datasets.Value("float32"),
93
  "shot_clock": datasets.Value("float32"),
94
- "ball_coordinates": datasets.Sequence(
95
- datasets.Value("float32"),
96
- datasets.Value("float32"),
97
- datasets.Value("float32")
98
- ),
99
  # "player_coordinates": datasets.Sequence(
100
  # {
101
  # "teamid": datasets.Value("int64"),
@@ -188,15 +188,15 @@ class NbaTracking(datasets.GeneratorBasedBuilder):
188
  "eventid": event_id,
189
  "moments": {
190
  "quarter": quarter,
191
- "game_clock": game_clock,
192
- "shot_clock": shot_clock,
193
- "ball_coordinates": ball_coords,
194
- # "player_coordinates": {
195
- # "teamid": team_id,
196
- # "playerid": player_id,
197
- # "x": x,
198
- # "y": y,
199
- # "z": z
200
- # }
201
  }
202
  }
 
91
  "quarter": datasets.Value("int64"),
92
  "game_clock": datasets.Value("float32"),
93
  "shot_clock": datasets.Value("float32"),
94
+ # "ball_coordinates": datasets.Sequence(
95
+ # datasets.Value("float32"),
96
+ # datasets.Value("float32"),
97
+ # datasets.Value("float32")
98
+ # ),
99
  # "player_coordinates": datasets.Sequence(
100
  # {
101
  # "teamid": datasets.Value("int64"),
 
188
  "eventid": event_id,
189
  "moments": {
190
  "quarter": quarter,
191
+ "game_clock": game_clock,
192
+ "shot_clock": shot_clock,
193
+ #"ball_coordinates": ball_coords,
194
+ # "player_coordinates": {
195
+ # "teamid": team_id,
196
+ # "playerid": player_id,
197
+ # "x": x,
198
+ # "y": y,
199
+ # "z": z
200
+ # }
201
  }
202
  }