Datasets:
Upload covertype.py
Browse files- covertype.py +2 -1
covertype.py
CHANGED
@@ -167,7 +167,8 @@ class Covertype(datasets.GeneratorBasedBuilder):
|
|
167 |
|
168 |
def _generate_examples(self, filepath: str):
|
169 |
with gzip.open(filepath) as log:
|
170 |
-
data = pandas.read_csv(log, header=
|
|
|
171 |
data = self.preprocess(data, config=self.config.name)
|
172 |
|
173 |
for row_id, row in data.iterrows():
|
|
|
167 |
|
168 |
def _generate_examples(self, filepath: str):
|
169 |
with gzip.open(filepath) as log:
|
170 |
+
data = pandas.read_csv(log, header=None)
|
171 |
+
data.columns = _BASE_FEATURE_NAMES
|
172 |
data = self.preprocess(data, config=self.config.name)
|
173 |
|
174 |
for row_id, row in data.iterrows():
|