Skip to main content

No project description provided

Project description

CIFAR 10 Dataset Library

This library was created to allow an easy usage of CIFAR 10 DATA. This is a wrapper around the instructions givn on the CIFAR 10 site

Installation

pip3 install cifar10

Sample Usage

import cifar10

for image, label in cifar10.data_batch_generator():
    image # numpy array of an image, which is of shape 32 x 32 x 3
    label # integer value of the image label

API

data_batch_generator

Returns a generator of each image and label pair for data batch

data_batch_generator(cache_location: str=".") -> Iterator[Tuple[np.array, int]]

parameters

  • cache_location (default: library folder location): where to cache the cifar10 data

test_batch_generator

Returns a generator of each image and label pair for test batch

test_batch_generator(cache_location: str=".") -> Iterator[Tuple[np.array, int]]

parameters

  • cache_location (default: library folder location): where to cache the cifar10 data

meta

Returns the raw meta file

meta(cache_location: str=".") -> Dict[bytes, Any]

parameters

  • cache_location (default: library folder location): where to cache the cifar10 data

image_label_map

Returns the raw meta file

image_label_map(cache_location: str=".") -> Dict[int, str]

parameters

  • cache_location (default: library folder location): where to cache the cifar10 data

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cifar10, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size cifar10-1.0.0.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View
Filename, size cifar10-1.0.0-py3-none-any.whl (7.9 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page