Skip to main content

Low Dependency Fetching of MNIST dataset

Project description

mnist

PyPi Version Actions Status Code style: black

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


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.0.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file get-mnist-1.0.0.tar.gz.

File metadata

  • Download URL: get-mnist-1.0.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5

File hashes

Hashes for get-mnist-1.0.0.tar.gz
Algorithm Hash digest
SHA256 493ff566833a3d7b210a1a1cb2fab0e0aced30d41be7f2b8552ec11ec1fc1732
MD5 35ade494467f3e0230da3cd5b3a9e42c
BLAKE2b-256 3a42e05e3be1225d39e4d07ec378f095a8af8adb308fd013c68b82cefb46476b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page