Commit
·
4553fbd
1
Parent(s):
b897361
feat: Add deepstarr dataset
Browse files
nucleotide_transformer_downstream_tasks_multilabel.py
CHANGED
@@ -80,7 +80,8 @@ class NucleotideTransformerDownstreamTasks(datasets.GeneratorBasedBuilder):
|
|
80 |
f"label_{i}": datasets.Value("float32")
|
81 |
for i in range(self.config.num_labels)
|
82 |
}
|
83 |
-
|
|
|
84 |
|
85 |
return datasets.DatasetInfo(
|
86 |
# This is the description that will appear on the datasets page.
|
@@ -130,7 +131,7 @@ class NucleotideTransformerDownstreamTasks(datasets.GeneratorBasedBuilder):
|
|
130 |
labels_dict = {
|
131 |
f"label_{i}": labels[i] for i in range(self.config.num_labels)
|
132 |
}
|
133 |
-
|
134 |
# yield example
|
135 |
-
yield key,
|
136 |
key += 1
|
|
|
80 |
f"label_{i}": datasets.Value("float32")
|
81 |
for i in range(self.config.num_labels)
|
82 |
}
|
83 |
+
features_dict.update(labels_dict)
|
84 |
+
features = datasets.Features(features_dict)
|
85 |
|
86 |
return datasets.DatasetInfo(
|
87 |
# This is the description that will appear on the datasets page.
|
|
|
131 |
labels_dict = {
|
132 |
f"label_{i}": labels[i] for i in range(self.config.num_labels)
|
133 |
}
|
134 |
+
sequence_name_dict.update(labels_dict)
|
135 |
# yield example
|
136 |
+
yield key, sequence_name_dict
|
137 |
key += 1
|