test
Browse files
test.py
CHANGED
|
@@ -89,7 +89,7 @@ class Test(datasets.GeneratorBasedBuilder):
|
|
| 89 |
yield id_, {
|
| 90 |
"customer_id": feature_a1,
|
| 91 |
"name": feature_a2,
|
| 92 |
-
"age":
|
| 93 |
}
|
| 94 |
elif self.config.name == "products":
|
| 95 |
# Subset B expects four columns: feature_b1, feature_b2, additional_info, label
|
|
@@ -97,5 +97,5 @@ class Test(datasets.GeneratorBasedBuilder):
|
|
| 97 |
yield id_, {
|
| 98 |
"product_id": feature_b1,
|
| 99 |
"name": feature_b2,
|
| 100 |
-
"price":
|
| 101 |
}
|
|
|
|
| 89 |
yield id_, {
|
| 90 |
"customer_id": feature_a1,
|
| 91 |
"name": feature_a2,
|
| 92 |
+
"age": label,
|
| 93 |
}
|
| 94 |
elif self.config.name == "products":
|
| 95 |
# Subset B expects four columns: feature_b1, feature_b2, additional_info, label
|
|
|
|
| 97 |
yield id_, {
|
| 98 |
"product_id": feature_b1,
|
| 99 |
"name": feature_b2,
|
| 100 |
+
"price": additional_info,
|
| 101 |
}
|