Low Dependency Fetching of MNIST dataset
Project description
mnist
Download MNIST and Fashion MNIST datasets without needing to install tensorflow.
Installation
pip install get-mnist
CLI Download
mnist --dataset [mnist, fashion] --cache [CACHE]
Use the --dataset
flag to decide if you want to download the original MNIST dataset or the Fashion MNIST dataset. Use the --cache
flag to decide where to save the dataset. If omitted it defaults to $XDG_DATA_HOME/MNIST
or $XDG_DATA_HOME/FASHION_MNIST
.
Programatic Download
from mnist import get_mnist
x, y, x_test, y_test = mnist('MNIST')
x, y, x_test, y_test = fashion_mnist('FASHION_MNIST')
The function argument is the name of the directory to cache the dataset in. These functions can also take train_url
, train_label_url
, test_url
, and test_label_url
to download data from different sources.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
get-mnist-1.0.1.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for get_mnist-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea593889eae56a4be6e272305e04a4b48bac422e43117224557fb12ae0c5ff60 |
|
MD5 | 3df30eddbf985f73f12c46952efcb4d4 |
|
BLAKE2b-256 | d392c31f77fdd9b61771d527ad1fddf362ca809db9fe9c26294215ab9bca23fc |