Datasets:
Tasks:
Text Classification
Formats:
csv
Sub-tasks:
sentiment-classification
Languages:
English
Size:
10K - 100K
License:
Francisco Castillo
commited on
Commit
·
553480b
1
Parent(s):
43ecf1e
wip
Browse files- reviews_with_drift.py +6 -6
reviews_with_drift.py
CHANGED
@@ -89,7 +89,7 @@ class ReviewsWithDrift(datasets.GeneratorBasedBuilder):
|
|
89 |
features = datasets.Features(
|
90 |
# These are the features of your dataset like images, labels ...
|
91 |
{
|
92 |
-
"prediction_ts": datasets.Value("
|
93 |
"age":datasets.Value("int16"),
|
94 |
"gender":datasets.Value("string"),
|
95 |
"context":datasets.Value("string"),
|
@@ -158,17 +158,17 @@ class ReviewsWithDrift(datasets.GeneratorBasedBuilder):
|
|
158 |
prediction_ts,age,gender,context,text,label = row
|
159 |
if id_==0:
|
160 |
continue
|
161 |
-
print(row)
|
162 |
# print(prediction_ts)
|
163 |
# print(type(prediction_ts))
|
164 |
# print(float(prediction_ts))
|
165 |
# print(type(float(prediction_ts)))
|
166 |
-
print(age)
|
167 |
-
print(type(label))
|
168 |
-
print(label)
|
169 |
yield id_, {
|
170 |
"prediction_ts":prediction_ts,
|
171 |
-
"age":
|
172 |
"gender":gender,
|
173 |
"context":context,
|
174 |
"text": text,
|
|
|
89 |
features = datasets.Features(
|
90 |
# These are the features of your dataset like images, labels ...
|
91 |
{
|
92 |
+
"prediction_ts": datasets.Value("float"),
|
93 |
"age":datasets.Value("int16"),
|
94 |
"gender":datasets.Value("string"),
|
95 |
"context":datasets.Value("string"),
|
|
|
158 |
prediction_ts,age,gender,context,text,label = row
|
159 |
if id_==0:
|
160 |
continue
|
161 |
+
# print(row)
|
162 |
# print(prediction_ts)
|
163 |
# print(type(prediction_ts))
|
164 |
# print(float(prediction_ts))
|
165 |
# print(type(float(prediction_ts)))
|
166 |
+
# print(age)
|
167 |
+
# print(type(label))
|
168 |
+
# print(label)
|
169 |
yield id_, {
|
170 |
"prediction_ts":prediction_ts,
|
171 |
+
"age":age,
|
172 |
"gender":gender,
|
173 |
"context":context,
|
174 |
"text": text,
|