Datasets:
Update isolet.py
Browse files
isolet.py
CHANGED
@@ -67,9 +67,12 @@ class Isolet(datasets.GeneratorBasedBuilder):
|
|
67 |
data = self.preprocess(data, config=self.config.name)
|
68 |
|
69 |
for row_id, row in data.iterrows():
|
70 |
-
data_row = dict(row)
|
|
|
|
|
71 |
|
72 |
yield row_id, data_row
|
|
|
73 |
|
74 |
def preprocess(self, data: pandas.DataFrame, config: str = DEFAULT_CONFIG) -> pandas.DataFrame:
|
75 |
data.columns = [str(i) for i in range(618)]
|
|
|
67 |
data = self.preprocess(data, config=self.config.name)
|
68 |
|
69 |
for row_id, row in data.iterrows():
|
70 |
+
data_row = dict(row)
|
71 |
+
print(row_id)
|
72 |
+
print(data_row)
|
73 |
|
74 |
yield row_id, data_row
|
75 |
+
print("\n\n\n")
|
76 |
|
77 |
def preprocess(self, data: pandas.DataFrame, config: str = DEFAULT_CONFIG) -> pandas.DataFrame:
|
78 |
data.columns = [str(i) for i in range(618)]
|