mstz commited on
Commit
2f8fe8f
·
1 Parent(s): 58df4ea

Upload glass.py

Browse files
Files changed (1) hide show
  1. glass.py +11 -10
glass.py CHANGED
@@ -23,16 +23,16 @@ _CITATION = """
23
 
24
  # Dataset info
25
  _BASE_FEATURE_NAMES = [
26
- "relative_compactness",
27
- "surface_area",
28
- "wall_area",
29
- "roof_area",
30
- "overall_height",
31
- "orientation",
32
- "glazing_area",
33
- "glazing_area_distribution",
34
- "heating_load",
35
- "cooling_load"
36
  ]
37
  urls_per_split = {
38
  "train": "https://huggingface.co/datasets/mstz/glass/raw/main/glass.data"
@@ -182,5 +182,6 @@ class Glass(datasets.GeneratorBasedBuilder):
182
 
183
  else:
184
  data.loc[:, "glass_type"] = data.glass_type.apply(lambda x: x - 1)
 
185
 
186
  return data
 
23
 
24
  # Dataset info
25
  _BASE_FEATURE_NAMES = [
26
+ "refractive_index",
27
+ "sodium",
28
+ "magnesium",
29
+ "aluminum",
30
+ "silicon",
31
+ "potassium",
32
+ "calcium",
33
+ "barium",
34
+ "iron",
35
+ "glass_type",
36
  ]
37
  urls_per_split = {
38
  "train": "https://huggingface.co/datasets/mstz/glass/raw/main/glass.data"
 
182
 
183
  else:
184
  data.loc[:, "glass_type"] = data.glass_type.apply(lambda x: x - 1)
185
+ print(data.glass_type.unique())
186
 
187
  return data