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. With just a couple of functions, you can easily access the class names and superclasses of CIFAR-100.

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'.

What does this package do?

This package gives you two 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').

These functions are useful when you're working with the CIFAR-100 dataset and want easy access to the class names for training, testing, or visualization.

Installation

You can easily install the package using pip:

pip install cifar_utils

## Installation

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])

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.1.2.tar.gz (2.5 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.1.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cifar_utils-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d391b189c8287fe74c1fc3795d1ee22dae50a8615e937c8308042f83ed5bc03d
MD5 29fd0d098992eee85b7f33448476d45d
BLAKE2b-256 eb9660a8c1efba6f0b982845b394d6741812d347bd261b8efe6ae37c5ff3de0d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cifar_utils-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 18e00b96d7e32da784f109203e5c928706793d96ad684d646582c88ba14c273e
MD5 e3b41aa144a345a9be29a2c26771246f
BLAKE2b-256 ed850d075fc1ce27dba695a03bc12a7c2a5e6c4b0838b5b6e27443ebcb45b15f

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