Datasets:

DOI:
License:
etrop commited on
Commit
d6d3814
·
1 Parent(s): f19a555
Files changed (1) hide show
  1. 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": list(map(float,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, {