Datasets:
Update liver.py
Browse files
liver.py
CHANGED
@@ -73,6 +73,7 @@ class ILPD(datasets.GeneratorBasedBuilder):
|
|
73 |
def _generate_examples(self, filepath: str):
|
74 |
data = pandas.read_csv(filepath)
|
75 |
data[["is_male"]].applymap(bool)
|
|
|
76 |
|
77 |
for row_id, row in data.iterrows():
|
78 |
data_row = dict(row)
|
|
|
73 |
def _generate_examples(self, filepath: str):
|
74 |
data = pandas.read_csv(filepath)
|
75 |
data[["is_male"]].applymap(bool)
|
76 |
+
data[["class"]].applymap(lambda x: x - 1)
|
77 |
|
78 |
for row_id, row in data.iterrows():
|
79 |
data_row = dict(row)
|