Skip to main content

No project description provided

Project description

CIFAR-100 Utils

This package provides simple utility functions to help you work with the CIFAR-100 dataset.

What is CIFAR-100?

CIFAR-100 is a popular dataset used in machine learning. It contains 100 different classes of images, each with 600 images. These classes range from animals like 'dog' and 'cat', to objects like 'car' and 'plane'. The dataset is divided into 20 superclasses, each of which contains several fine-grained classes.

What does this package do?

This package gives you the following useful functions:

  • get_classes(): This function returns a list of 100 fine-grained class names (e.g., 'apple', 'dog', 'airplane').
  • get_super_classes(): This function returns a list of 20 broad superclasses (e.g., 'aquatic mammals', 'flowers', 'vehicles').
  • image_data(): This function provides a concise summary of the CIFAR-100 dataset, including image format, matrix explanation, the number of superclasses, and the number of images in each superclass.

These functions are useful when you're working with the CIFAR-100 dataset and want easy access to the class names, superclasses, or need a quick overview of the dataset.

Installation

You can easily install the package using pip:

pip install cifar-utils

## Usage

Once you've installed the package, you can use it in your Python code like this:

### 1. Get all class names:

The `get_classes()` function returns a list of 100 fine-grained class names from the CIFAR-100 dataset.

```python
from cifar_utils import get_classes

# Get all class names from CIFAR-100
class_names = get_classes()

# Print the first 10 class names
print(class_names[:10])  

### 2. Get all super class names:

from cifar_utils import get_super_classes

# Get all superclasses
super_classes = get_super_classes()

# Print the first 10 superclasses
print(super_classes[:10])

### 3. Get an overview about the image data:

from cifar_utils import image_data

# Get summary of CIFAR-100 dataset
image_data()

### **Disclaimer**:

I would like to clarify that I **did not copy** any of the content in this package. Any resemblance to other resources or code is purely **coincidental**.

For the **class names** used in this package, I referred to the **Hugging Face** website as a reference, and they were used as a foundation for the functionality in this package.

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

cifar_utils-0.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cifar_utils-0.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file cifar_utils-0.2.tar.gz.

File metadata

  • Download URL: cifar_utils-0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for cifar_utils-0.2.tar.gz
Algorithm Hash digest
SHA256 820496798273303b0add6b01ade2562b93ee694497d8a6c758a74209e627a457
MD5 e12d7b3206b387eb51497c12f4785af3
BLAKE2b-256 3236ec923cfb0052e521d432e12113a592132f664c249d6fe06745a09ecaaa01

See more details on using hashes here.

File details

Details for the file cifar_utils-0.2-py3-none-any.whl.

File metadata

  • Download URL: cifar_utils-0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for cifar_utils-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bc61627037b778854ab995f4850d3b89e188c49e237a6c852cd71007d520e894
MD5 ebea0ae367c3688f954fbea7810a45f3
BLAKE2b-256 4b42c80c2322dc8a28832f475b40095f129899b9dbf5d59464686095ab03b729

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