try remote strat
Browse files- ChessBot-Dataset.py +3 -3
ChessBot-Dataset.py
CHANGED
@@ -26,10 +26,10 @@ class ChessPGNDataset(GeneratorBasedBuilder):
|
|
26 |
def _split_generators(self, dl_manager: DownloadManager):
|
27 |
from pathlib import Path
|
28 |
|
29 |
-
|
30 |
|
31 |
-
train_shards = sorted(
|
32 |
-
test_shards = sorted(
|
33 |
train_paths = dl_manager.download([str(p) for p in train_shards])
|
34 |
test_paths = dl_manager.download([str(p) for p in test_shards])
|
35 |
|
|
|
26 |
def _split_generators(self, dl_manager: DownloadManager):
|
27 |
from pathlib import Path
|
28 |
|
29 |
+
repo_root = Path(__file__).parent
|
30 |
|
31 |
+
train_shards = sorted((repo_root/ 'train').glob("**.pgn"))
|
32 |
+
test_shards = sorted((repo_root/ 'test').glob("**.pgn"))
|
33 |
train_paths = dl_manager.download([str(p) for p in train_shards])
|
34 |
test_paths = dl_manager.download([str(p) for p in test_shards])
|
35 |
|