yairschiff commited on
Commit
0857cc8
1 Parent(s): 56b892b

Update ten_species.py

Browse files
Files changed (1) hide show
  1. ten_species.py +5 -1
ten_species.py CHANGED
@@ -72,7 +72,11 @@ class TenSpeciesGenomes(datasets.GeneratorBasedBuilder):
72
  features = datasets.Features(
73
  {
74
  "sequence": datasets.Value("string"),
75
- "species_label": datasets.Value("string"),
 
 
 
 
76
  "description": datasets.Value("string"),
77
  "start_pos": datasets.Value("int32"),
78
  "end_pos": datasets.Value("int32"),
 
72
  features = datasets.Features(
73
  {
74
  "sequence": datasets.Value("string"),
75
+ "species_label": datasets.ClassLabel(
76
+ num_classes=10,
77
+ names=['Homo_sapiens', 'Mus_musculus', 'Drosophila_melanogaster', 'Danio_rerio',
78
+ 'Caenorhabditis_elegans', 'Gallus_gallus', 'Gorilla_gorilla', 'Felis_catus',
79
+ 'Salmo_trutta', 'Arabidopsis_thaliana']),
80
  "description": datasets.Value("string"),
81
  "start_pos": datasets.Value("int32"),
82
  "end_pos": datasets.Value("int32"),