Update car.py
Browse files
car.py
CHANGED
|
@@ -156,9 +156,7 @@ class Car(datasets.GeneratorBasedBuilder):
|
|
| 156 |
|
| 157 |
if self.config.name == "car_binary":
|
| 158 |
data["acceptability_level"] = data["acceptability_level"].apply(lambda x: 0 if x == 0 else 1)
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
print(data.acceptability_level.unique())
|
| 162 |
return data
|
| 163 |
|
| 164 |
def encode(self, feature, value):
|
|
|
|
| 156 |
|
| 157 |
if self.config.name == "car_binary":
|
| 158 |
data["acceptability_level"] = data["acceptability_level"].apply(lambda x: 0 if x == 0 else 1)
|
| 159 |
+
|
|
|
|
|
|
|
| 160 |
return data
|
| 161 |
|
| 162 |
def encode(self, feature, value):
|