Datasets:
Upload glass.py
Browse files
glass.py
CHANGED
@@ -23,16 +23,16 @@ _CITATION = """
|
|
23 |
|
24 |
# Dataset info
|
25 |
_BASE_FEATURE_NAMES = [
|
26 |
-
"
|
27 |
-
"
|
28 |
-
"
|
29 |
-
"
|
30 |
-
"
|
31 |
-
"
|
32 |
-
"
|
33 |
-
"
|
34 |
-
"
|
35 |
-
"
|
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
|