test
Browse files- README.md +1 -1
- customers/test.parquet +0 -3
- customers/train.parquet +0 -3
- customers/validation.parquet +0 -3
- dataset_infos.json +4 -4
- products/test.parquet +0 -3
- products/train.parquet +0 -3
- products/validation.parquet +0 -3
- test +4 -6
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:
|
|
|
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": "
|
10 |
"_type": "Value"
|
11 |
},
|
12 |
"name": {
|
@@ -14,7 +14,7 @@
|
|
14 |
"_type": "Value"
|
15 |
},
|
16 |
"age": {
|
17 |
-
"dtype": "
|
18 |
"_type": "Value"
|
19 |
}
|
20 |
},
|
@@ -35,7 +35,7 @@
|
|
35 |
"license": "Apache License 2.0",
|
36 |
"features": {
|
37 |
"product_id": {
|
38 |
-
"dtype": "
|
39 |
"_type": "Value"
|
40 |
},
|
41 |
"name": {
|
@@ -43,7 +43,7 @@
|
|
43 |
"_type": "Value"
|
44 |
},
|
45 |
"price": {
|
46 |
-
"dtype": "
|
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("
|
42 |
"name": datasets.Value("string"),
|
43 |
-
"age": datasets.Value("
|
44 |
}
|
45 |
)
|
46 |
elif self.config.name == "products":
|
47 |
features = datasets.Features(
|
48 |
{
|
49 |
-
"product_id": datasets.Value("
|
50 |
"name": datasets.Value("string"),
|
51 |
-
"price": datasets.Value("
|
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()
|