mstz commited on
Commit
b4af389
·
1 Parent(s): beea4dd

Upload p53.py

Browse files
Files changed (1) hide show
  1. p53.py +3 -2
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 i, feature in enumerate(list(data.colums)[:-1]):
88
- print(f"on feature {i}")
 
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())]