iszhaoxin commited on
Commit
ae30820
·
1 Parent(s): 679bbb4
Files changed (1) hide show
  1. test.py +12 -3
test.py CHANGED
@@ -20,14 +20,23 @@ class Test(datasets.GeneratorBasedBuilder):
20
  """Your dataset description"""
21
 
22
  BUILDER_CONFIGS = [
23
- datasets.BuilderConfig(name="customers", version=datasets.Version("1.0.0"), description="This is subset A"),
24
- datasets.BuilderConfig(name="products", version=datasets.Version("1.0.0"), description="This is subset B"),
 
 
 
 
 
 
 
 
 
 
25
  ]
26
 
27
  def _info(self):
28
  if self.config.name == "customers":
29
  features = datasets.Features(
30
- {
31
  "customer_id": datasets.Value("string"),
32
  "name": datasets.Value("string"),
33
  "age": datasets.Value("int32"),
 
20
  """Your dataset description"""
21
 
22
  BUILDER_CONFIGS = [
23
+ datasets.BuilderConfig(
24
+ name="customers",
25
+ data_dir="./",
26
+ data_files=["train.csv", "val.csv", "test.csv"],
27
+ version=datasets.Version("1.0.0"),
28
+ description="This is subset A"),
29
+ datasets.BuilderConfig(
30
+ name="products",
31
+ data_dir="./",
32
+ data_files=["train.csv", "val.csv", "test.csv"],
33
+ version=datasets.Version("1.0.0"),
34
+ description="This is subset B"),
35
  ]
36
 
37
  def _info(self):
38
  if self.config.name == "customers":
39
  features = datasets.Features(
 
40
  "customer_id": datasets.Value("string"),
41
  "name": datasets.Value("string"),
42
  "age": datasets.Value("int32"),