observations.fashion_mnist

fashion_mnist(path)

Load the Fashion MNIST data set (Xiao, Rasul, & Vollgraf, 2017).

Args:

  • path: str. Path to directory which either stores file or otherwise file will be downloaded and extracted there. Filenames are train-images-idx3-ubyte, train-labels-idx1-ubyte, t10k-images-idx3-ubyte, t10k-labels-idx1-ubyte.

Returns:

Tuple of np.ndarray's (x_train, y_train), (x_test, y_test).

Xiao, H., Rasul, K., & Vollgraf, R. (2017). Fashion-MNIST: A novel image dataset for benchmarking machine learning algorithms. ArXiv Preprint ArXiv:1708.07747.