dcayton commited on
Commit
ec803ff
1 Parent(s): 6695e4e

restructure

Browse files
Files changed (1) hide show
  1. nba_tracking_data_15_16.py +11 -11
nba_tracking_data_15_16.py CHANGED
@@ -100,17 +100,6 @@ class NbaTracking(datasets.GeneratorBasedBuilder):
100
  )
101
  ]
102
 
103
- random.seed(9)
104
- items = random.sample(items, self.config.samples)
105
-
106
- _URLS = {}
107
- for game in items:
108
- name = game['name'][:-3]
109
- _URLS[name] = _URL + "/" + name + ".7z"
110
-
111
- _URLS = _URLS
112
- _PBP_URL = _PBP_URL
113
-
114
  def _info(self):
115
  features = datasets.Features(
116
  {
@@ -197,6 +186,17 @@ class NbaTracking(datasets.GeneratorBasedBuilder):
197
  )
198
 
199
  def _split_generators(self, dl_manager):
 
 
 
 
 
 
 
 
 
 
 
200
  urls = self._URLS
201
  data_dir = dl_manager.download_and_extract(urls)
202
 
 
100
  )
101
  ]
102
 
 
 
 
 
 
 
 
 
 
 
 
103
  def _info(self):
104
  features = datasets.Features(
105
  {
 
186
  )
187
 
188
  def _split_generators(self, dl_manager):
189
+ random.seed(9)
190
+ items = random.sample(items, self.config.samples)
191
+
192
+ _URLS = {}
193
+ for game in items:
194
+ name = game['name'][:-3]
195
+ _URLS[name] = _URL + "/" + name + ".7z"
196
+
197
+ _URLS = _URLS
198
+ _PBP_URL = _PBP_URL
199
+
200
  urls = self._URLS
201
  data_dir = dl_manager.download_and_extract(urls)
202