Skip to main content

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

Metadata

Release files for cifar10 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cifar10 1.0.0
File Size Uploaded
cifar10-1.0.0.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cifar10 1.0.0
File Interpreter ABI Platform
cifar10-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.3 kB

Release files / cifar10-1.0.0.tar.gz

Download URL cifar10-1.0.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
05874c16c359b5588bbef729988d43d220bd5c564c6f49234c36a35b7fde72f5
BLAKE2b-256 checksum
How to use checksums
fc7c52408a1a724c4ec5a3ee8d55655aaae19e37097a4c270aa1ceb344bf582f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9

Release files / cifar10-1.0.0-py3-none-any.whl

Download URL cifar10-1.0.0-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7660e2b63eb328b9d0d452a9c861b101f6aa027c0a9e9ca3a2977fcefaf1504
BLAKE2b-256 checksum
How to use checksums
fb84e06eb50b91440519432b9115fcec6f2d4e662623f1b90ae7a372f89d26e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page