mstz commited on
Commit
bd31a71
·
1 Parent(s): 54cb3a0

Upload post_operative.py

Browse files
Files changed (1) hide show
  1. post_operative.py +1 -1
post_operative.py CHANGED
@@ -130,7 +130,7 @@ class PostOperative(datasets.GeneratorBasedBuilder):
130
 
131
  def preprocess(self, data: pandas.DataFrame) -> pandas.DataFrame:
132
  if self.config.name == "post_operative_binary":
133
- data["decision"] = data["decision"].apply(lambda x: 1 if x > 1 else 0)
134
 
135
  for feature in _ENCODING_DICS:
136
  encoding_function = partial(self.encode, feature)
 
130
 
131
  def preprocess(self, data: pandas.DataFrame) -> pandas.DataFrame:
132
  if self.config.name == "post_operative_binary":
133
+ data["decision"] = data["decision"].apply(lambda x: 1 if x >= 1 else 0)
134
 
135
  for feature in _ENCODING_DICS:
136
  encoding_function = partial(self.encode, feature)