debug
Browse files- agro-nt-tasks.py +2 -1
agro-nt-tasks.py
CHANGED
@@ -9,6 +9,7 @@ import json
|
|
9 |
import os
|
10 |
from typing import List
|
11 |
from Bio import SeqIO
|
|
|
12 |
|
13 |
import datasets
|
14 |
|
@@ -213,7 +214,7 @@ class AgroNtTasks(datasets.GeneratorBasedBuilder):
|
|
213 |
yield key, {
|
214 |
"sequence": str(record.seq),
|
215 |
"name": name,
|
216 |
-
"labels":
|
217 |
}
|
218 |
else:
|
219 |
yield key, {
|
|
|
9 |
import os
|
10 |
from typing import List
|
11 |
from Bio import SeqIO
|
12 |
+
import numpy as np
|
13 |
|
14 |
import datasets
|
15 |
|
|
|
214 |
yield key, {
|
215 |
"sequence": str(record.seq),
|
216 |
"name": name,
|
217 |
+
"labels": np.array(labels).astype('float32')
|
218 |
}
|
219 |
else:
|
220 |
yield key, {
|