Datasets:
Update mc4-es-sampled.py
Browse files- mc4-es-sampled.py +4 -5
mc4-es-sampled.py
CHANGED
@@ -38,11 +38,10 @@ _CONFIGS = [
|
|
38 |
"gaussian",
|
39 |
]
|
40 |
|
41 |
-
# The last validation shard is not working in the original allen/c4 repo
|
42 |
_N_SHARDS_PER_SPLIT = {
|
43 |
-
"random": {"train": 1024, "validation":
|
44 |
-
"stepwise": {"train": 1024, "validation":
|
45 |
-
"gaussian": {"train": 1024, "validation":
|
46 |
}
|
47 |
|
48 |
|
@@ -101,7 +100,7 @@ class Mc4EsSampled(datasets.GeneratorBasedBuilder):
|
|
101 |
n_shards=_N_SHARDS_PER_SPLIT[config]["validation"],
|
102 |
)
|
103 |
for config in self.config.configs
|
104 |
-
for index in range(_N_SHARDS_PER_SPLIT[config]["validation"])
|
105 |
]
|
106 |
train_downloaded_files = dl_manager.download(data_urls["train"])
|
107 |
validation_downloaded_files = dl_manager.download(data_urls["validation"])
|
|
|
38 |
"gaussian",
|
39 |
]
|
40 |
|
|
|
41 |
_N_SHARDS_PER_SPLIT = {
|
42 |
+
"random": {"train": 1024, "validation": 16},
|
43 |
+
"stepwise": {"train": 1024, "validation": 16},
|
44 |
+
"gaussian": {"train": 1024, "validation": 16},
|
45 |
}
|
46 |
|
47 |
|
|
|
100 |
n_shards=_N_SHARDS_PER_SPLIT[config]["validation"],
|
101 |
)
|
102 |
for config in self.config.configs
|
103 |
+
for index in range(_N_SHARDS_PER_SPLIT[config]["validation"] - 1) # the last validation shard is not working in the original allen/c4 repo
|
104 |
]
|
105 |
train_downloaded_files = dl_manager.download(data_urls["train"])
|
106 |
validation_downloaded_files = dl_manager.download(data_urls["validation"])
|