again, test to detect error
Browse files- nba_tracking_data_15_16.py +11 -11
nba_tracking_data_15_16.py
CHANGED
@@ -88,12 +88,12 @@ class NbaTracking(datasets.GeneratorBasedBuilder):
|
|
88 |
# # "position": datasets.Value("string")
|
89 |
# # })
|
90 |
# # },
|
91 |
-
"moments": datasets.Sequence(
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
# "ball_coordinates": datasets.Sequence(
|
98 |
# datasets.Value("float32"),
|
99 |
# datasets.Value("float32"),
|
@@ -108,7 +108,7 @@ class NbaTracking(datasets.GeneratorBasedBuilder):
|
|
108 |
# "z": datasets.Value("float32")
|
109 |
# }
|
110 |
# )
|
111 |
-
}
|
112 |
# datasets.Sequence(
|
113 |
# datasets.Value("int64"),
|
114 |
# datasets.Value("float32"),
|
@@ -200,10 +200,10 @@ class NbaTracking(datasets.GeneratorBasedBuilder):
|
|
200 |
"gamedate": game_date,
|
201 |
"events": {
|
202 |
"eventid": event_id,
|
203 |
-
"moments": {
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
# "ball_coordinates": ball_coords,
|
208 |
# "player_coordinates": {
|
209 |
# "teamid": team_id,
|
|
|
88 |
# # "position": datasets.Value("string")
|
89 |
# # })
|
90 |
# # },
|
91 |
+
# "moments": datasets.Sequence(
|
92 |
+
# # question, how to indicate lists of lists of different types
|
93 |
+
# {
|
94 |
+
# "quarter": datasets.Value("int64"),
|
95 |
+
# "game_clock": datasets.Value("float32"),
|
96 |
+
# "shot_clock": datasets.Value("float32"),
|
97 |
# "ball_coordinates": datasets.Sequence(
|
98 |
# datasets.Value("float32"),
|
99 |
# datasets.Value("float32"),
|
|
|
108 |
# "z": datasets.Value("float32")
|
109 |
# }
|
110 |
# )
|
111 |
+
# }
|
112 |
# datasets.Sequence(
|
113 |
# datasets.Value("int64"),
|
114 |
# datasets.Value("float32"),
|
|
|
200 |
"gamedate": game_date,
|
201 |
"events": {
|
202 |
"eventid": event_id,
|
203 |
+
# "moments": {
|
204 |
+
# "quarter": quarter,
|
205 |
+
# "game_clock": game_clock,
|
206 |
+
# "shot_clock": shot_clock,
|
207 |
# "ball_coordinates": ball_coords,
|
208 |
# "player_coordinates": {
|
209 |
# "teamid": team_id,
|