fashionMnist

fun fashionMnist(cacheDirectory: File = File("cache")): Pair<OnHeapDataset, OnHeapDataset>

Loads the Fashion-MNIST dataset.

This is a dataset of 60,000 28x28 grayscale images of 10 fashion categories, along with a test set of 10,000 images. This dataset can be used as a drop-in replacement for MNIST. The class labels are:

LabelDescription
0T-shirt/top
1Trousers
2Pullover
3Dress
4Coat
5Sandals
6Shirt
7Sneakers
8Bag
9Ankle boots

NOTE: The copyright for Fashion-MNIST is held by Zalando SE. Fashion-MNIST is licensed under the MIT license.

Return

Train and test datasets. Each dataset includes X and Y data. X data are uint8 arrays of grayscale image data with shapes (num_samples, 28, 28). Y data uint8 arrays of digit labels (integers in range 0-9) with shapes (num_samples,).

Parameters

cacheDirectory

Cache directory to cached models and datasets.