mstz commited on
Commit
6da76e8
·
1 Parent(s): e59e811

Update liver.py

Browse files
Files changed (1) hide show
  1. liver.py +1 -0
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)