KeithG33 commited on
Commit
89d860d
·
1 Parent(s): 40af6ec

try remote strat

Browse files
Files changed (1) hide show
  1. 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
- data_dir = Path(self.config.data_dir)
30
 
31
- train_shards = sorted(data_dir.glob("**.pgn"))
32
- test_shards = sorted(data_dir.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
 
 
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