Datasets:

Languages:
English
License:
gabrielaltay severo HF staff commited on
Commit
657cef5
1 Parent(s): b4e4b24

Fix the class labels feature (#2)

Browse files

- Fix the class labels feature (2250a05da7fb1e4df45d569fa0afef8dd95af620)


Co-authored-by: Sylvain Lesage <severo@users.noreply.huggingface.co>

Files changed (1) hide show
  1. geokhoj_v1.py +1 -1
geokhoj_v1.py CHANGED
@@ -99,7 +99,7 @@ class Geokhojv1Dataset(datasets.GeneratorBasedBuilder):
99
  {
100
  "id": datasets.Value("string"),
101
  "label": datasets.features.ClassLabel(
102
- names={0: "control", 1: "perturbation"}
103
  ),
104
  "text": datasets.Value("string"),
105
  }
 
99
  {
100
  "id": datasets.Value("string"),
101
  "label": datasets.features.ClassLabel(
102
+ names=["control", "perturbation"]
103
  ),
104
  "text": datasets.Value("string"),
105
  }