Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-classification
Languages:
English
Size:
10K<n<100K
License:
Francisco Castillo
commited on
Commit
·
aa56354
1
Parent(s):
9ec5c9d
Use pickle5
Browse files
fashion_mnist_quality_drift.py
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
|
18 |
|
19 |
import datasets
|
20 |
-
|
21 |
|
22 |
|
23 |
# TODO: Add BibTeX citation to our BLOG
|
@@ -155,9 +155,6 @@ class FashionMNISTLabelDrift(datasets.GeneratorBasedBuilder):
|
|
155 |
|
156 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
157 |
def _generate_examples(self, filepath):
|
158 |
-
import os
|
159 |
-
os.system('!pip install pickle5')
|
160 |
-
import pickle5 as pickle
|
161 |
# This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
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:
|
|
|
17 |
|
18 |
|
19 |
import datasets
|
20 |
+
import pickle5 as pickle
|
21 |
|
22 |
|
23 |
# TODO: Add BibTeX citation to our BLOG
|
|
|
155 |
|
156 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
157 |
def _generate_examples(self, filepath):
|
|
|
|
|
|
|
158 |
# This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
159 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
160 |
with open(filepath, 'rb') as pkl_file:
|