wyxu commited on
Commit
1f0ccb5
·
1 Parent(s): 477a903

Update Genome_database.py

Browse files
Files changed (1) hide show
  1. Genome_database.py +10 -10
Genome_database.py CHANGED
@@ -28,16 +28,16 @@ class GenomeDataset(DatasetBuilder):
28
  train_files = downloaded_files[:int(len(downloaded_files) * 0.8)] # first 80% for training
29
  test_files = downloaded_files[int(len(downloaded_files) * 0.8):] # last 20% for testing
30
 
31
- return [
32
- datasets.SplitGenerator(
33
- name=datasets.Split.TRAIN,
34
- gen_kwargs={"filepaths": train_files}
35
- ),
36
- datasets.SplitGenerator(
37
- name=datasets.Split.TEST,
38
- gen_kwargs={"filepaths": test_files}
39
- )
40
- ]
41
 
42
  def _generate_examples(self, filepaths: List[str]) -> Tuple[str, Dict[str, Any]]:
43
  for filepath in filepaths:
 
28
  train_files = downloaded_files[:int(len(downloaded_files) * 0.8)] # first 80% for training
29
  test_files = downloaded_files[int(len(downloaded_files) * 0.8):] # last 20% for testing
30
 
31
+ return [
32
+ datasets.SplitGenerator(
33
+ name=datasets.Split.TRAIN,
34
+ gen_kwargs={"filepaths": train_files}
35
+ ),
36
+ datasets.SplitGenerator(
37
+ name=datasets.Split.TEST,
38
+ gen_kwargs={"filepaths": test_files}
39
+ )
40
+ ]
41
 
42
  def _generate_examples(self, filepaths: List[str]) -> Tuple[str, Dict[str, Any]]:
43
  for filepath in filepaths: