Datasets:
Upload monks.py
Browse files
monks.py
CHANGED
@@ -170,7 +170,7 @@ class Monk(datasets.GeneratorBasedBuilder):
|
|
170 |
data.drop("empty", axis="columns", inplace=True)
|
171 |
data.loc[:, "has_tie"] = data.has_tie.apply(bool)
|
172 |
data.loc[:, "is_smiling"] = data.is_smiling.apply(bool)
|
173 |
-
data
|
174 |
|
175 |
print(data.head())
|
176 |
for feature in _ENCODING_DICS:
|
|
|
170 |
data.drop("empty", axis="columns", inplace=True)
|
171 |
data.loc[:, "has_tie"] = data.has_tie.apply(bool)
|
172 |
data.loc[:, "is_smiling"] = data.is_smiling.apply(bool)
|
173 |
+
data = data[_BASE_FEATURE_NAMES]
|
174 |
|
175 |
print(data.head())
|
176 |
for feature in _ENCODING_DICS:
|