Datasets:
Update covertype.py
Browse files- covertype.py +2 -0
covertype.py
CHANGED
|
@@ -610,5 +610,7 @@ class Covertype(datasets.GeneratorBasedBuilder):
|
|
| 610 |
data["cover_type"] = data["cover_type"].apply(lambda x: 1 if x == 5 else 0)
|
| 611 |
elif config == "cover_type_6":
|
| 612 |
data["cover_type"] = data["cover_type"].apply(lambda x: 1 if x == 6 else 0)
|
|
|
|
|
|
|
| 613 |
|
| 614 |
return data
|
|
|
|
| 610 |
data["cover_type"] = data["cover_type"].apply(lambda x: 1 if x == 5 else 0)
|
| 611 |
elif config == "cover_type_6":
|
| 612 |
data["cover_type"] = data["cover_type"].apply(lambda x: 1 if x == 6 else 0)
|
| 613 |
+
|
| 614 |
+
print(data["cover_type"])
|
| 615 |
|
| 616 |
return data
|