Datasets:
Upload post_operative.py
Browse files- 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
|
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)
|