debug
Browse files- agro-nt-tasks.py +9 -10
agro-nt-tasks.py
CHANGED
@@ -35,12 +35,12 @@ predicting regulatory features, RNA processing sites, and gene expression values
|
|
35 |
# TODO: Add the licence for the dataset here if you can find it
|
36 |
_LICENSE = ""
|
37 |
|
38 |
-
_TASK_NAMES = ['
|
39 |
-
'
|
40 |
-
'
|
41 |
-
'
|
42 |
-
'
|
43 |
-
'
|
44 |
|
45 |
|
46 |
_TASK_NAME_TO_TYPE = {'poly_a':'binary',
|
@@ -58,8 +58,7 @@ class AgroNtTasksConfig(datasets.BuilderConfig):
|
|
58 |
**kwargs: keyword arguments forwarded to super.
|
59 |
"""
|
60 |
|
61 |
-
self.task =
|
62 |
-
self.name = "_".join(task_name.split("_")[2:])
|
63 |
self.task_type = _TASK_NAME_TO_TYPE[self.task]
|
64 |
|
65 |
super().__init__(
|
@@ -109,9 +108,9 @@ class AgroNtTasks(datasets.GeneratorBasedBuilder):
|
|
109 |
def _split_generators(self, dl_manager) -> List[datasets.SplitGenerator]:
|
110 |
|
111 |
train_file = dl_manager.download_and_extract(
|
112 |
-
os.path.join(
|
113 |
test_file = dl_manager.download_and_extract(
|
114 |
-
os.path.join(
|
115 |
|
116 |
return [
|
117 |
datasets.SplitGenerator(
|
|
|
35 |
# TODO: Add the licence for the dataset here if you can find it
|
36 |
_LICENSE = ""
|
37 |
|
38 |
+
_TASK_NAMES = ['poly_a.arabidopsis_thaliana',
|
39 |
+
'poly_a.oryza_sativa_indica_group',
|
40 |
+
'poly_a.trifolium_pratense',
|
41 |
+
'poly_a.medicago_truncatula',
|
42 |
+
'poly_a.chlamydomonas_reinhardtii',
|
43 |
+
'poly_a.oryza_sativa_japonica_group']
|
44 |
|
45 |
|
46 |
_TASK_NAME_TO_TYPE = {'poly_a':'binary',
|
|
|
58 |
**kwargs: keyword arguments forwarded to super.
|
59 |
"""
|
60 |
|
61 |
+
self.task,self.specie = task_name.split(".")
|
|
|
62 |
self.task_type = _TASK_NAME_TO_TYPE[self.task]
|
63 |
|
64 |
super().__init__(
|
|
|
108 |
def _split_generators(self, dl_manager) -> List[datasets.SplitGenerator]:
|
109 |
|
110 |
train_file = dl_manager.download_and_extract(
|
111 |
+
os.path.join(self.config.task, self.config.specie + "_train.fa"))
|
112 |
test_file = dl_manager.download_and_extract(
|
113 |
+
os.path.join(self.config.task, self.config.specie + "_test.fa"))
|
114 |
|
115 |
return [
|
116 |
datasets.SplitGenerator(
|