Expand description
Canonical ML dataset loaders
Provides convenient one-liner access to well-known ML datasets for tutorials, examples, and benchmarking.
§Example
ⓘ
use alimentar::datasets::{iris, mnist, cifar10};
// Load Iris dataset (embedded, no download)
let iris = iris()?;
println!("Iris: {} samples", iris.len());
// Load MNIST (downloads from HuggingFace Hub on first use)
let mnist = mnist()?;
let (train, test) = mnist.split()?;Structs§
- Cifar10
Dataset - CIFAR-10 image classification dataset
- Cifar100
Dataset - CIFAR-100 image classification dataset
- Dataset
Split - Split information for train/test datasets
- Fashion
Mnist Dataset - Fashion-MNIST clothing classification dataset
- Iris
Dataset - The Iris flower dataset
- Mnist
Dataset - MNIST handwritten digits dataset
Constants§
- CIFA
R10_ CLASSES - CIFAR-10 class names
- CIFA
R100_ COARSE_ CLASSES - CIFAR-100 coarse class names (20 superclasses)
- CIFA
R100_ FINE_ CLASSES - CIFAR-100 fine class names (100 classes)
- FASHION_
MNIST_ CLASSES - Fashion-MNIST class names
Traits§
- Canonical
Dataset - A canonical ML dataset with train/test split support
Functions§
- cifar10
- Load CIFAR-10 dataset (embedded 100-sample subset)
- cifar100
- Load CIFAR-100 dataset (embedded 100-sample subset)
- fashion_
mnist - Load Fashion-MNIST dataset (embedded 100-sample subset)
- iris
- Load the Iris dataset
- mnist
- Load MNIST dataset (embedded 1000-sample subset)