Datasets:

DOI:
License:
etrop commited on
Commit
474b727
1 Parent(s): f1dcd63
Files changed (1) hide show
  1. 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.Array2D(shape=(1, num_labels),
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": np.array([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, {