observations.fashion_mnist
优质
小牛编辑
132浏览
2023-12-01
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 aretrain-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.