Datasets:
Update isolet.py
Browse files
isolet.py
CHANGED
|
@@ -23,7 +23,7 @@ _CITATION = """
|
|
| 23 |
|
| 24 |
# Dataset info
|
| 25 |
urls_per_split = {
|
| 26 |
-
"train": "https://
|
| 27 |
}
|
| 28 |
features_types_per_config = {
|
| 29 |
"isolet": {
|
|
@@ -63,8 +63,7 @@ class Isolet(datasets.GeneratorBasedBuilder):
|
|
| 63 |
]
|
| 64 |
|
| 65 |
def _generate_examples(self, filepath: str):
|
| 66 |
-
|
| 67 |
-
data = pandas.read_csv(filepath, header=None)
|
| 68 |
data = self.preprocess(data, config=self.config.name)
|
| 69 |
|
| 70 |
for row_id, row in data.iterrows():
|
|
|
|
| 23 |
|
| 24 |
# Dataset info
|
| 25 |
urls_per_split = {
|
| 26 |
+
"train": "https://github.com/riccotti/InterpretableModels/raw/master/datasets/isolet.data.gz"
|
| 27 |
}
|
| 28 |
features_types_per_config = {
|
| 29 |
"isolet": {
|
|
|
|
| 63 |
]
|
| 64 |
|
| 65 |
def _generate_examples(self, filepath: str):
|
| 66 |
+
data = pandas.read_csv(filepath, header=None, compression="gzip")
|
|
|
|
| 67 |
data = self.preprocess(data, config=self.config.name)
|
| 68 |
|
| 69 |
for row_id, row in data.iterrows():
|