Datasets:
Tasks:
Text Classification
Formats:
csv
Sub-tasks:
sentiment-classification
Languages:
English
Size:
10K - 100K
License:
Francisco Castillo
commited on
Commit
•
e68dd09
1
Parent(s):
0cc8a74
wip
Browse files- reviews_with_drift.py +3 -3
reviews_with_drift.py
CHANGED
@@ -91,7 +91,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
91 |
# These are the features of your dataset like images, labels ...
|
92 |
{
|
93 |
"prediction_ts": datasets.Value("float"),
|
94 |
-
"age":datasets.Value("
|
95 |
"gender":datasets.Value("string"),
|
96 |
"context":datasets.Value("string"),
|
97 |
"text":datasets.Value("string"),
|
@@ -134,7 +134,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
134 |
},
|
135 |
),
|
136 |
datasets.SplitGenerator(
|
137 |
-
name=datasets.Split.
|
138 |
# These kwargs will be passed to _generate_examples
|
139 |
gen_kwargs={
|
140 |
"filepath": os.path.join(data_dir, "validation.csv"),
|
@@ -142,7 +142,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
142 |
},
|
143 |
),
|
144 |
datasets.SplitGenerator(
|
145 |
-
name=
|
146 |
# These kwargs will be passed to _generate_examples
|
147 |
gen_kwargs={
|
148 |
"filepath": os.path.join(data_dir, "production.csv"),
|
|
|
91 |
# These are the features of your dataset like images, labels ...
|
92 |
{
|
93 |
"prediction_ts": datasets.Value("float"),
|
94 |
+
"age":datasets.Value("int16"),
|
95 |
"gender":datasets.Value("string"),
|
96 |
"context":datasets.Value("string"),
|
97 |
"text":datasets.Value("string"),
|
|
|
134 |
},
|
135 |
),
|
136 |
datasets.SplitGenerator(
|
137 |
+
name=datasets.Split.VALIDATION,
|
138 |
# These kwargs will be passed to _generate_examples
|
139 |
gen_kwargs={
|
140 |
"filepath": os.path.join(data_dir, "validation.csv"),
|
|
|
142 |
},
|
143 |
),
|
144 |
datasets.SplitGenerator(
|
145 |
+
name="production",
|
146 |
# These kwargs will be passed to _generate_examples
|
147 |
gen_kwargs={
|
148 |
"filepath": os.path.join(data_dir, "production.csv"),
|