Datasets:
Upload 2 files
Browse files- wine.data +2 -1
- wine_origin.py +4 -0
wine.data
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
-
malic_acid,ash,alcalinity_of_ash,magnesium,phenols,flavanoids,nonflavanoid_phenols,proanthocyanins,color_intensity,hue,diluted_wines,proline,class
|
|
|
2 |
14.23,1.71,2.43,15.6,127,2.8,3.06,.28,2.29,5.64,1.04,3.92,1065,1
|
3 |
13.2,1.78,2.14,11.2,100,2.65,2.76,.26,1.28,4.38,1.05,3.4,1050,1
|
4 |
13.16,2.36,2.67,18.6,101,2.8,3.24,.3,2.81,5.68,1.03,3.17,1185,1
|
|
|
1 |
+
malic_acid,ash,alcalinity_of_ash,magnesium,phenols,flavanoids,nonflavanoid_phenols,proanthocyanins,color_intensity,hue,diluted_wines,proline,unknown,class
|
2 |
+
14.23,1.71,2.43,15.6,127,2.8,3.06,.28,2.29,5.64,1.04,3.92,1065,1
|
3 |
14.23,1.71,2.43,15.6,127,2.8,3.06,.28,2.29,5.64,1.04,3.92,1065,1
|
4 |
13.2,1.78,2.14,11.2,100,2.65,2.76,.26,1.28,4.38,1.05,3.4,1050,1
|
5 |
13.16,2.36,2.67,18.6,101,2.8,3.24,.3,2.81,5.68,1.03,3.17,1185,1
|
wine_origin.py
CHANGED
@@ -43,6 +43,7 @@ features_types_per_config = {
|
|
43 |
"hue": datasets.Value("float64"),
|
44 |
"diluted_wines": datasets.Value("float64"),
|
45 |
"proline": datasets.Value("float64"),
|
|
|
46 |
"class": datasets.ClassLabel(num_classes=3)
|
47 |
},
|
48 |
"wine_origin_0": {
|
@@ -58,6 +59,7 @@ features_types_per_config = {
|
|
58 |
"hue": datasets.Value("float64"),
|
59 |
"diluted_wines": datasets.Value("float64"),
|
60 |
"proline": datasets.Value("float64"),
|
|
|
61 |
"class": datasets.ClassLabel(num_classes=2)
|
62 |
},
|
63 |
"wine_origin_1": {
|
@@ -73,6 +75,7 @@ features_types_per_config = {
|
|
73 |
"hue": datasets.Value("float64"),
|
74 |
"diluted_wines": datasets.Value("float64"),
|
75 |
"proline": datasets.Value("float64"),
|
|
|
76 |
"class": datasets.ClassLabel(num_classes=2)
|
77 |
},
|
78 |
"wine_origin_2": {
|
@@ -88,6 +91,7 @@ features_types_per_config = {
|
|
88 |
"hue": datasets.Value("float64"),
|
89 |
"diluted_wines": datasets.Value("float64"),
|
90 |
"proline": datasets.Value("float64"),
|
|
|
91 |
"class": datasets.ClassLabel(num_classes=2)
|
92 |
},
|
93 |
|
|
|
43 |
"hue": datasets.Value("float64"),
|
44 |
"diluted_wines": datasets.Value("float64"),
|
45 |
"proline": datasets.Value("float64"),
|
46 |
+
"unknown": datasets.Value("int64"),
|
47 |
"class": datasets.ClassLabel(num_classes=3)
|
48 |
},
|
49 |
"wine_origin_0": {
|
|
|
59 |
"hue": datasets.Value("float64"),
|
60 |
"diluted_wines": datasets.Value("float64"),
|
61 |
"proline": datasets.Value("float64"),
|
62 |
+
"unknown": datasets.Value("int64"),
|
63 |
"class": datasets.ClassLabel(num_classes=2)
|
64 |
},
|
65 |
"wine_origin_1": {
|
|
|
75 |
"hue": datasets.Value("float64"),
|
76 |
"diluted_wines": datasets.Value("float64"),
|
77 |
"proline": datasets.Value("float64"),
|
78 |
+
"unknown": datasets.Value("int64"),
|
79 |
"class": datasets.ClassLabel(num_classes=2)
|
80 |
},
|
81 |
"wine_origin_2": {
|
|
|
91 |
"hue": datasets.Value("float64"),
|
92 |
"diluted_wines": datasets.Value("float64"),
|
93 |
"proline": datasets.Value("float64"),
|
94 |
+
"unknown": datasets.Value("int64"),
|
95 |
"class": datasets.ClassLabel(num_classes=2)
|
96 |
},
|
97 |
|