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
Built Distribution
File details
Details for the file get-mnist-1.0.1.tar.gz
.
File metadata
- Download URL: get-mnist-1.0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b112f4eb80e2f0ab4cd4d0c29cdf457338a6f361e8ca35df3a12fbcc74590d1d |
|
MD5 | 99f919656de51b1c85a450b778dead96 |
|
BLAKE2b-256 | 66848ba19f18f353b777f1c4741241a6f2665a6bf278010315bb3e44e3cb109a |
File details
Details for the file get_mnist-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: get_mnist-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea593889eae56a4be6e272305e04a4b48bac422e43117224557fb12ae0c5ff60 |
|
MD5 | 3df30eddbf985f73f12c46952efcb4d4 |
|
BLAKE2b-256 | d392c31f77fdd9b61771d527ad1fddf362ca809db9fe9c26294215ab9bca23fc |