iszhaoxin commited on
Commit
2c4d03d
·
1 Parent(s): 0e9b360
README.md CHANGED
@@ -55,4 +55,4 @@ The dataset contains the following subsets, each split into train/validation/tes
55
  ### products
56
  - product_id: int32
57
  - name: string
58
- - price: float32
 
55
  ### products
56
  - product_id: int32
57
  - name: string
58
+ - price: double
customers/test.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:a0d7fc07c560cd83f2d4dd719355fe31b012ce95861b08315ad61d6af0f5f875
3
- size 2707
 
 
 
 
customers/train.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5500cfc871ad2544c7f593f23bbbbf5736177a581dd01af18e54d3949be90368
3
- size 3498
 
 
 
 
customers/validation.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f7b0c41e9cdcb28de94c16cc30a56644ffde130e0ee38c0ce77000d35d3c619c
3
- size 2714
 
 
 
 
dataset_infos.json CHANGED
@@ -6,7 +6,7 @@
6
  "license": "MIT License",
7
  "features": {
8
  "customer_id": {
9
- "dtype": "int32",
10
  "_type": "Value"
11
  },
12
  "name": {
@@ -14,7 +14,7 @@
14
  "_type": "Value"
15
  },
16
  "age": {
17
- "dtype": "int32",
18
  "_type": "Value"
19
  }
20
  },
@@ -35,7 +35,7 @@
35
  "license": "Apache License 2.0",
36
  "features": {
37
  "product_id": {
38
- "dtype": "int32",
39
  "_type": "Value"
40
  },
41
  "name": {
@@ -43,7 +43,7 @@
43
  "_type": "Value"
44
  },
45
  "price": {
46
- "dtype": "float32",
47
  "_type": "Value"
48
  }
49
  },
 
6
  "license": "MIT License",
7
  "features": {
8
  "customer_id": {
9
+ "dtype": "int64",
10
  "_type": "Value"
11
  },
12
  "name": {
 
14
  "_type": "Value"
15
  },
16
  "age": {
17
+ "dtype": "int64",
18
  "_type": "Value"
19
  }
20
  },
 
35
  "license": "Apache License 2.0",
36
  "features": {
37
  "product_id": {
38
+ "dtype": "int64",
39
  "_type": "Value"
40
  },
41
  "name": {
 
43
  "_type": "Value"
44
  },
45
  "price": {
46
+ "dtype": "double",
47
  "_type": "Value"
48
  }
49
  },
products/test.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1713187f24cfc61eef8a5d477e83898f4873189a203fc5e326b5a47feaa14f71
3
- size 2736
 
 
 
 
products/train.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8c5f4beb9ffb06b884d7643537bbe2e4a0ee53a90e76a8f990195d7209fc092b
3
- size 3581
 
 
 
 
products/validation.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3165f389d6d30a3c40fabf6e1719a6d6685c9a642006d9150922d73ad148090e
3
- size 2739
 
 
 
 
test CHANGED
@@ -38,17 +38,17 @@ class Test(datasets.GeneratorBasedBuilder):
38
  if self.config.name == "customers":
39
  features = datasets.Features(
40
  {
41
- "customer_id": datasets.Value("int32"),
42
  "name": datasets.Value("string"),
43
- "age": datasets.Value("int32"),
44
  }
45
  )
46
  elif self.config.name == "products":
47
  features = datasets.Features(
48
  {
49
- "product_id": datasets.Value("int32"),
50
  "name": datasets.Value("string"),
51
- "price": datasets.Value("float32"),
52
  }
53
  )
54
  else:
@@ -65,7 +65,6 @@ class Test(datasets.GeneratorBasedBuilder):
65
 
66
  def _split_generators(self, dl_manager):
67
  data_dir = os.path.join(self.config.data_dir, self.config.name)
68
- # set_trace()
69
  return [
70
  datasets.SplitGenerator(
71
  name=datasets.Split.TRAIN,
@@ -85,5 +84,4 @@ class Test(datasets.GeneratorBasedBuilder):
85
  with open(filepath, encoding="utf-8") as f:
86
  df = pd.read_csv(filepath, index_col=0)
87
  for id_, item in df.iterrows():
88
- # set_trace()
89
  yield id_, item.to_dict()
 
38
  if self.config.name == "customers":
39
  features = datasets.Features(
40
  {
41
+ "customer_id": datasets.Value("int64"),
42
  "name": datasets.Value("string"),
43
+ "age": datasets.Value("int64"),
44
  }
45
  )
46
  elif self.config.name == "products":
47
  features = datasets.Features(
48
  {
49
+ "product_id": datasets.Value("int64"),
50
  "name": datasets.Value("string"),
51
+ "price": datasets.Value("double"),
52
  }
53
  )
54
  else:
 
65
 
66
  def _split_generators(self, dl_manager):
67
  data_dir = os.path.join(self.config.data_dir, self.config.name)
 
68
  return [
69
  datasets.SplitGenerator(
70
  name=datasets.Split.TRAIN,
 
84
  with open(filepath, encoding="utf-8") as f:
85
  df = pd.read_csv(filepath, index_col=0)
86
  for id_, item in df.iterrows():
 
87
  yield id_, item.to_dict()