Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-classification
Languages:
English
Size:
10K<n<100K
License:
Francisco Castillo
commited on
Commit
•
1ee7595
1
Parent(s):
5b44395
wip
Browse files
fashion_mnist_label_drift.py
CHANGED
@@ -159,11 +159,11 @@ class FashionMNISTLabelDrift(datasets.GeneratorBasedBuilder):
|
|
159 |
def _generate_examples(self, filepath):
|
160 |
# This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
161 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
162 |
-
df = pd.read_hdf(filepath)
|
163 |
-
print(len(df))
|
164 |
-
print(df.columns)
|
165 |
|
166 |
-
|
|
|
|
|
|
|
167 |
# csv_reader = csv.reader(csv_file, delimiter='\t')
|
168 |
# for id_, row in enumerate(csv_reader):
|
169 |
# prediction_ts,language,text,ner_tags = row
|
|
|
159 |
def _generate_examples(self, filepath):
|
160 |
# This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
161 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
|
|
|
|
|
|
162 |
|
163 |
+
with open(filepath) as file:
|
164 |
+
df = pd.read_hdf(file)
|
165 |
+
print(len(df))
|
166 |
+
print(df.columns)
|
167 |
# csv_reader = csv.reader(csv_file, delimiter='\t')
|
168 |
# for id_, row in enumerate(csv_reader):
|
169 |
# prediction_ts,language,text,ner_tags = row
|