iszhaoxin commited on
Commit
5427ede
·
1 Parent(s): f0bdcd4
Files changed (1) hide show
  1. test.py +2 -2
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": int(label),
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": float(additional_info),
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
  }