CIFAR10H#
- class torch_uncertainty.datasets.classification.CIFAR10H(root, train=None, transform=None, target_transform=None, download=False)[source]#
CIFAR-10H Dataset.
- Parameters:
root (
str|Path) – Root directory of dataset where filecifar-10h-probs.npyexists or will be saved to if download is set toTrue.train (
bool|None) – For API consistency, not used.transform (
Callable[...,Any] |None) – A function/transform that takes in a PIL image and returns a transformed version. E.g,transforms.RandomCrop. Defaults toNone.target_transform (
Callable[...,Any] |None) – A function/transform that takes in the target and transforms it. Defaults toNone.download (
bool) – IfTrue, downloads the dataset from the internet and puts it in root directory. If dataset is already downloaded, it is not downloaded again. Defaults toFalse.