Francisco Castillo commited on
Commit
1167a0f
1 Parent(s): 47bd1fc
Files changed (1) hide show
  1. fashion_mnist_label_drift.py +2 -2
fashion_mnist_label_drift.py CHANGED
@@ -162,14 +162,14 @@ class FashionMNISTLabelDrift(datasets.GeneratorBasedBuilder):
162
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
163
  with open(filepath, 'rb') as pkl_file:
164
  data = pickle.load(pkl_file, encoding='bytes')
165
- pred_ts=data['prediction_ts']
166
  images=data['image']
167
  labels=data['label']
168
  for idx, _ in enumerate(images):
169
  if id_==0:
170
  continue
171
  yield id_, {
172
- "prediction_ts":pred_ts[idx],
173
  "label":labels[idx],
174
  "image":images[idx]
175
  }
162
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
163
  with open(filepath, 'rb') as pkl_file:
164
  data = pickle.load(pkl_file, encoding='bytes')
165
+ prediction_ts=data['prediction_ts']
166
  images=data['image']
167
  labels=data['label']
168
  for idx, _ in enumerate(images):
169
  if id_==0:
170
  continue
171
  yield id_, {
172
+ "prediction_ts":prediction_ts[idx],
173
  "label":labels[idx],
174
  "image":images[idx]
175
  }