rustat-python-api 0.6.3__tar.gz → 0.6.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rustat-python-api-0.6.3/rustat_python_api.egg-info → rustat-python-api-0.6.5}/PKG-INFO +1 -1
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/rustat_python_api/parser.py +2 -2
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/rustat_python_api/pitch_control.py +4 -2
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5/rustat_python_api.egg-info}/PKG-INFO +1 -1
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/setup.py +1 -1
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/LICENSE +0 -0
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/README.md +0 -0
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/pyproject.toml +0 -0
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/rustat_python_api/__init__.py +0 -0
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/rustat_python_api/config.py +0 -0
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/rustat_python_api/kernels/__init__.py +0 -0
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/rustat_python_api/kernels/maha.py +0 -0
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/rustat_python_api/models_api.py +0 -0
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/rustat_python_api/processing.py +0 -0
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/rustat_python_api/urls.py +0 -0
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/rustat_python_api.egg-info/SOURCES.txt +0 -0
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/rustat_python_api.egg-info/dependency_links.txt +0 -0
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/rustat_python_api.egg-info/requires.txt +0 -0
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/rustat_python_api.egg-info/top_level.txt +0 -0
- {rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/setup.cfg +0 -0
|
@@ -46,8 +46,8 @@ class RuStatParser:
|
|
|
46
46
|
else:
|
|
47
47
|
return []
|
|
48
48
|
|
|
49
|
-
def get_rpl_info(self):
|
|
50
|
-
for season_id in tqdm(range(
|
|
49
|
+
def get_rpl_info(self, start_season: int = 1, end_season: int = 37):
|
|
50
|
+
for season_id in tqdm(range(start_season, end_season)):
|
|
51
51
|
data = self.resp2data(
|
|
52
52
|
self.urls["tournament_teams"].format(
|
|
53
53
|
user=self.user,
|
|
@@ -322,7 +322,9 @@ class PitchControl:
|
|
|
322
322
|
diff = locs.view(1, -1, 2) # (1,N,2)
|
|
323
323
|
diff = diff - mu.unsqueeze(1) # (P,N,2)
|
|
324
324
|
|
|
325
|
-
|
|
325
|
+
device = torch.device(device)
|
|
326
|
+
|
|
327
|
+
if device.type == 'cuda':
|
|
326
328
|
out = triton_influence(
|
|
327
329
|
mu.unsqueeze(0), Sigma_inv.unsqueeze(0),
|
|
328
330
|
locs, BLOCK_N=64
|
|
@@ -391,7 +393,7 @@ class PitchControl:
|
|
|
391
393
|
diff = locs.view(1, 1, -1, 2) # (1,1,N,2)
|
|
392
394
|
diff = diff - mu.unsqueeze(2) # (F,P,N,2)
|
|
393
395
|
|
|
394
|
-
if
|
|
396
|
+
if device.type == 'cuda':
|
|
395
397
|
out = triton_influence(mu, Sigma_inv, locs, BLOCK_N=64) # (F,N)
|
|
396
398
|
|
|
397
399
|
return out
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/rustat_python_api.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{rustat-python-api-0.6.3 → rustat-python-api-0.6.5}/rustat_python_api.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|