mstz commited on
Commit
5021a7a
1 Parent(s): 2eb3b22

Update isolet.py

Browse files
Files changed (1) hide show
  1. isolet.py +1 -2
isolet.py CHANGED
@@ -65,6 +65,7 @@ class Isolet(datasets.GeneratorBasedBuilder):
65
  def _generate_examples(self, filepath: str):
66
  data = pandas.read_csv(filepath + "/isolet1+2+3+4.data", header=None).infer_objects()
67
  data = self.preprocess(data, config=self.config.name)
 
68
 
69
  for row_id, row in data.iterrows():
70
  print(row_id)
@@ -74,7 +75,5 @@ class Isolet(datasets.GeneratorBasedBuilder):
74
  yield row_id, data_row
75
 
76
  def preprocess(self, data: pandas.DataFrame, config: str = DEFAULT_CONFIG) -> pandas.DataFrame:
77
- print(data.shape)
78
- print(data.columns)
79
  data.columns = [str(i) for i in range(618)]
80
  return data.astype({"617": "int"})
 
65
  def _generate_examples(self, filepath: str):
66
  data = pandas.read_csv(filepath + "/isolet1+2+3+4.data", header=None).infer_objects()
67
  data = self.preprocess(data, config=self.config.name)
68
+ print(f"reading {filepath}/isolet1+2+3+4.data")
69
 
70
  for row_id, row in data.iterrows():
71
  print(row_id)
 
75
  yield row_id, data_row
76
 
77
  def preprocess(self, data: pandas.DataFrame, config: str = DEFAULT_CONFIG) -> pandas.DataFrame:
 
 
78
  data.columns = [str(i) for i in range(618)]
79
  return data.astype({"617": "int"})