mstz commited on
Commit
3da9c85
·
1 Parent(s): a96d1ed

Upload p53.py

Browse files
Files changed (1) hide show
  1. p53.py +2 -0
p53.py CHANGED
@@ -82,10 +82,12 @@ class P53(datasets.GeneratorBasedBuilder):
82
 
83
  def preprocess(self, data: pandas.DataFrame) -> pandas.DataFrame:
84
  for feature in _ENCODING_DICS:
 
85
  encoding_function = partial(self.encode, feature)
86
  data.loc[:, feature] = data[feature].apply(encoding_function)
87
 
88
  for feature in data.columns:
 
89
  if feature == "class":
90
  break
91
  data[data[feature] == "?", feature] = data[feature].mean()
 
82
 
83
  def preprocess(self, data: pandas.DataFrame) -> pandas.DataFrame:
84
  for feature in _ENCODING_DICS:
85
+ print(f"encoding {feature}\n\n\n")
86
  encoding_function = partial(self.encode, feature)
87
  data.loc[:, feature] = data[feature].apply(encoding_function)
88
 
89
  for feature in data.columns:
90
+ print(f"on feature {feature}\n\n\n")
91
  if feature == "class":
92
  break
93
  data[data[feature] == "?", feature] = data[feature].mean()