Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-classification
Languages:
English
Multilinguality:
monolingual
Size Categories:
10K<n<100K
Language Creators:
expert-generated
Annotations Creators:
expert-generated
Source Datasets:
extended|imdb
License:
Francisco Castillo
commited on
Commit
•
1167a0f
1
Parent(s):
47bd1fc
wip
Browse files
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 |
-
|
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":
|
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 |
}
|