mstz commited on
Commit
09d4f2e
·
1 Parent(s): fe0a8fb

Update mushroom.py

Browse files
Files changed (1) hide show
  1. mushroom.py +22 -22
mushroom.py CHANGED
@@ -245,28 +245,28 @@ urls_per_split = {
245
  }
246
  features_types_per_config = {
247
  "mushroom": {
248
- "cap_shape",
249
- "cap_surface",
250
- "cap_color",
251
- "has_bruises",
252
- "odor",
253
- "gill_attachment",
254
- "gill_spacing",
255
- "gill_size",
256
- "gill_color",
257
- "stalk_shape",
258
- "stalk_root",
259
- "stalk_surface_above_ring",
260
- "stalk_surface_belows_ring",
261
- "stalk_color_above_ring",
262
- "stalk_color_belows_ring",
263
- "veil_type",
264
- "veil_color",
265
- "number_of_rings",
266
- "ring_type",
267
- "spore_print_color",
268
- "population",
269
- "habitat",
270
  "is_poisonous": datasets.ClassLabel(num_classes=2, names=("no", "yes"))
271
  }
272
  }
 
245
  }
246
  features_types_per_config = {
247
  "mushroom": {
248
+ "cap_shape": datasets.Value("string"),
249
+ "cap_surface": datasets.Value("string"),
250
+ "cap_color": datasets.Value("string"),
251
+ "has_bruises": datasets.Value("bool"),
252
+ "odor": datasets.Value("string"),
253
+ "gill_attachment": datasets.Value("string"),
254
+ "gill_spacing": datasets.Value("string"),
255
+ "gill_size": datasets.Value("string"),
256
+ "gill_color": datasets.Value("string"),
257
+ "stalk_shape": datasets.Value("string"),
258
+ "stalk_root": datasets.Value("string"),
259
+ "stalk_surface_above_ring": datasets.Value("string"),
260
+ "stalk_surface_belows_ring": datasets.Value("string"),
261
+ "stalk_color_above_ring": datasets.Value("string"),
262
+ "stalk_color_belows_ring": datasets.Value("string"),
263
+ "veil_type": datasets.Value("string"),
264
+ "veil_color": datasets.Value("string"),
265
+ "number_of_rings": datasets.Value("string"),
266
+ "ring_type": datasets.Value("string"),
267
+ "spore_print_color": datasets.Value("string"),
268
+ "population": datasets.Value("string"),
269
+ "habitat": datasets.Value("string"),
270
  "is_poisonous": datasets.ClassLabel(num_classes=2, names=("no", "yes"))
271
  }
272
  }