debug
Browse files- agro-nt-tasks.py +2 -3
agro-nt-tasks.py
CHANGED
@@ -146,8 +146,7 @@ class AgroNtTasks(datasets.GeneratorBasedBuilder):
|
|
146 |
features = datasets.Features({
|
147 |
"sequence": datasets.Value("string"),
|
148 |
"name": datasets.Value("string"),
|
149 |
-
"labels": datasets.
|
150 |
-
dtype= "float32")})
|
151 |
|
152 |
|
153 |
return datasets.DatasetInfo(
|
@@ -214,7 +213,7 @@ class AgroNtTasks(datasets.GeneratorBasedBuilder):
|
|
214 |
yield key, {
|
215 |
"sequence": str(record.seq),
|
216 |
"name": name,
|
217 |
-
"labels":
|
218 |
}
|
219 |
else:
|
220 |
yield key, {
|
|
|
146 |
features = datasets.Features({
|
147 |
"sequence": datasets.Value("string"),
|
148 |
"name": datasets.Value("string"),
|
149 |
+
"labels": [datasets.Value("float32") for _ in range(num_labels)]})
|
|
|
150 |
|
151 |
|
152 |
return datasets.DatasetInfo(
|
|
|
213 |
yield key, {
|
214 |
"sequence": str(record.seq),
|
215 |
"name": name,
|
216 |
+
"labels": labels
|
217 |
}
|
218 |
else:
|
219 |
yield key, {
|