Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-classification
Languages:
English
Size:
10K<n<100K
License:
Francisco Castillo
commited on
Commit
•
c425796
1
Parent(s):
b1fb6ef
Class labels must be ints
Browse files
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 |
}
|