Francisco Castillo commited on
Commit
553480b
1 Parent(s): 43ecf1e
Files changed (1) hide show
  1. 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("string"),
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":15,
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,