mstz commited on
Commit
57bbe8f
·
1 Parent(s): 90e9307

Upload soybean.py

Browse files
Files changed (1) hide show
  1. soybean.py +9 -1
soybean.py CHANGED
@@ -115,7 +115,15 @@ features_types_per_config = {
115
  "seed_size": datasets.Value("string"),
116
  "shriveling": datasets.Value("string"),
117
  "roots": datasets.Value("string"),
118
- "class": datasets.ClassLabel(num_classes=19)
 
 
 
 
 
 
 
 
119
  }
120
  }
121
  for c in _ENCODING_DICS["class"].keys():
 
115
  "seed_size": datasets.Value("string"),
116
  "shriveling": datasets.Value("string"),
117
  "roots": datasets.Value("string"),
118
+ "class": datasets.ClassLabel(num_classes=19,
119
+ names=["diaporthe_stem_canker",
120
+ "charcoal_rot", "rhizoctonia_root_rot",
121
+ "phytophthora_rot", "brown_stem_rot", "powdery_mildew",
122
+ "downy_mildew", "brown_spot", "bacterial_blight",
123
+ "bacterial_pustule", "purple_seed_stain", "anthracnose",
124
+ "phyllosticta_leaf_spot", "alternarialeaf_spot",
125
+ "frog_eye_leaf_spot", "diaporthe_pod_&_stem_blight",
126
+ "cyst_nematode", "2_4_d_injury", "herbicide_injury"])
127
  }
128
  }
129
  for c in _ENCODING_DICS["class"].keys():