Datasets:
Tasks:
Tabular Classification
Languages:
English
Upload p53.py
Browse files
p53.py
CHANGED
@@ -84,8 +84,9 @@ class P53(datasets.GeneratorBasedBuilder):
|
|
84 |
encoding_function = partial(self.encode, feature)
|
85 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
86 |
|
87 |
-
for
|
88 |
-
|
|
|
89 |
data[data[feature] == "?", feature] = data[feature].mean()
|
90 |
|
91 |
return data[list(features_types_per_config[self.config.name].keys())]
|
|
|
84 |
encoding_function = partial(self.encode, feature)
|
85 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
86 |
|
87 |
+
for feature in data.colums:
|
88 |
+
if feature == "class":
|
89 |
+
break
|
90 |
data[data[feature] == "?", feature] = data[feature].mean()
|
91 |
|
92 |
return data[list(features_types_per_config[self.config.name].keys())]
|