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.
Metadata
Release files for get-mnist 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| get-mnist-1.0.1.tar.gz | 4.6 kB | Without provenance | Details for get-mnist-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| get_mnist-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for get_mnist-1.0.1-py3-none-any.whl |
Total release size: 10.3 kB
Release files / get-mnist-1.0.1.tar.gz
| Download URL | get-mnist-1.0.1.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b112f4eb80e2f0ab4cd4d0c29cdf457338a6f361e8ca35df3a12fbcc74590d1d
|
|
BLAKE2b-256 checksum How to use checksums |
66848ba19f18f353b777f1c4741241a6f2665a6bf278010315bb3e44e3cb109a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / get_mnist-1.0.1-py3-none-any.whl
| Download URL | get_mnist-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea593889eae56a4be6e272305e04a4b48bac422e43117224557fb12ae0c5ff60
|
|
BLAKE2b-256 checksum How to use checksums |
d392c31f77fdd9b61771d527ad1fddf362ca809db9fe9c26294215ab9bca23fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for get-mnist 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.