Francisco Castillo commited on
Commit
c425796
1 Parent(s): b1fb6ef

Class labels must be ints

Browse files
Files changed (1) hide show
  1. fashion_mnist_label_drift.py +1 -2
fashion_mnist_label_drift.py CHANGED
@@ -162,10 +162,9 @@ class FashionMNISTLabelDrift(datasets.GeneratorBasedBuilder):
162
  prediction_ts=data['prediction_ts']
163
  images=data['image']
164
  labels=data['label']
165
- print(type(int(data['label'][0])))
166
  for idx, _ in enumerate(images):
167
  yield idx, {
168
  "prediction_ts":prediction_ts[idx],
169
- "label":labels[idx],
170
  "image":images[idx]
171
  }
 
162
  prediction_ts=data['prediction_ts']
163
  images=data['image']
164
  labels=data['label']
 
165
  for idx, _ in enumerate(images):
166
  yield idx, {
167
  "prediction_ts":prediction_ts[idx],
168
+ "label":int(labels[idx]),
169
  "image":images[idx]
170
  }