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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cifar10-1.0.0.tar.gz.
File metadata
- Download URL: cifar10-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05874c16c359b5588bbef729988d43d220bd5c564c6f49234c36a35b7fde72f5
|
|
| MD5 |
f2c197bc60c81f65ca2e8f2b1abf618c
|
|
| BLAKE2b-256 |
fc7c52408a1a724c4ec5a3ee8d55655aaae19e37097a4c270aa1ceb344bf582f
|
File details
Details for the file cifar10-1.0.0-py3-none-any.whl.
File metadata
- Download URL: cifar10-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7660e2b63eb328b9d0d452a9c861b101f6aa027c0a9e9ca3a2977fcefaf1504
|
|
| MD5 |
9be1ea263c095392415da7c656f864da
|
|
| BLAKE2b-256 |
fb84e06eb50b91440519432b9115fcec6f2d4e662623f1b90ae7a372f89d26e7
|