Datasets:
Update yeast.py
Browse files
yeast.py
CHANGED
@@ -30,11 +30,11 @@ _HOMEPAGE = "https://archive-beta.ics.uci.edu/dataset/110/yeast"
|
|
30 |
_URLS = ("https://archive-beta.ics.uci.edu/dataset/110/yeast")
|
31 |
_CITATION = """
|
32 |
@misc{misc_yeast_110,
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
}
|
39 |
"""
|
40 |
|
@@ -221,8 +221,8 @@ class Yeast(datasets.GeneratorBasedBuilder):
|
|
221 |
encoding_function = partial(self.encode, feature)
|
222 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
223 |
|
224 |
-
|
225 |
-
|
226 |
|
227 |
if self.config.name == "yeast_0":
|
228 |
data["class"] = data["class"].apply(lambda x: 1 if x == 0 else 0)
|
|
|
30 |
_URLS = ("https://archive-beta.ics.uci.edu/dataset/110/yeast")
|
31 |
_CITATION = """
|
32 |
@misc{misc_yeast_110,
|
33 |
+
author = {Nakai,Kenta},
|
34 |
+
title = {{Yeast}},
|
35 |
+
year = {1996},
|
36 |
+
howpublished = {UCI Machine Learning Repository},
|
37 |
+
note = {{DOI}: \\url{10.24432/C5KG68}}
|
38 |
}
|
39 |
"""
|
40 |
|
|
|
221 |
encoding_function = partial(self.encode, feature)
|
222 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
223 |
|
224 |
+
data["erl"] = data["erl"].apply(lambda x: True if x == 1 else False)
|
225 |
+
data = data.astype({"erl": "bool"})
|
226 |
|
227 |
if self.config.name == "yeast_0":
|
228 |
data["class"] = data["class"].apply(lambda x: 1 if x == 0 else 0)
|