mstz commited on
Commit
10a3f36
1 Parent(s): 2c3b526

Update isolet.py

Browse files
Files changed (1) hide show
  1. isolet.py +1 -2
isolet.py CHANGED
@@ -68,8 +68,6 @@ class Isolet(datasets.GeneratorBasedBuilder):
68
  print(f"reading {filepath}/isolet1+2+3+4.data")
69
 
70
  for row_id, row in data.iterrows():
71
- print(row_id)
72
- print(row)
73
  data_row = dict(row)
74
 
75
  yield row_id, data_row
@@ -78,5 +76,6 @@ class Isolet(datasets.GeneratorBasedBuilder):
78
  data.columns = [str(i) for i in range(618)]
79
  data.loc[:, "617"] = data["617"].apply(int)
80
  data = data.astype({"617": "int8"})
 
81
 
82
  return data
 
68
  print(f"reading {filepath}/isolet1+2+3+4.data")
69
 
70
  for row_id, row in data.iterrows():
 
 
71
  data_row = dict(row)
72
 
73
  yield row_id, data_row
 
76
  data.columns = [str(i) for i in range(618)]
77
  data.loc[:, "617"] = data["617"].apply(int)
78
  data = data.astype({"617": "int8"})
79
+ data = data.astype({str(i): "float64" for i in range(617)})
80
 
81
  return data