Data Utilities#
The data module provides dataset loaders, OOD benchmarks, and data utilities.
Vision Datasets#
|
Base class for vision datasets with standardized splits. |
|
MNIST dataset with standardized splits. |
|
Fashion-MNIST dataset with standardized splits. |
|
CIFAR-10 dataset with standardized splits. |
|
CIFAR-100 dataset with standardized splits. |
|
SVHN (Street View House Numbers) dataset. |
OOD Benchmarks#
|
Base class for OOD detection benchmarks. |
|
Factory function to get OOD benchmark by name. |
|
MNIST (ID) vs Fashion-MNIST (OOD) benchmark. |
|
CIFAR-10 (ID) vs CIFAR-100 (OOD) benchmark. |
|
CIFAR-10 (ID) vs SVHN (OOD) benchmark. |
|
MNIST (ID) vs NotMNIST (OOD) benchmark. |
|
Create OOD benchmark by holding out specific classes. |
|
Create OOD benchmark using corrupted versions of ID data. |
Data Loaders#
|
Create standard data loaders for train/val/test. |
|
Create data loader with balanced class sampling. |
|
Create data loaders for OOD detection evaluation. |
|
Create loaders for calibration experiments. |
|
Wrapper for infinite data loading. |
|
Compute statistics about a DataLoader. |
Dataset Utilities#
|
Split dataset into multiple subsets. |
|
Filter dataset to only include (or exclude) specific classes. |
|
Create a class-balanced subset with equal samples per class. |
|
Compute statistics about a dataset. |
|
Create an imbalanced version of a dataset. |
|
Wrapper to apply transformations to a dataset. |
|
Add label noise to a dataset. |
|
Merge multiple datasets into one. |
|
Randomly subsample a fraction of the dataset. |