Francisco Castillo commited on
Commit
e68dd09
1 Parent(s): 0cc8a74
Files changed (1) hide show
  1. 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("int"),
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.TEST,
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=datasets.Split.VALIDATION,
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"),