dataeval.utils.data.datasets.CIFAR10¶
-
class dataeval.utils.data.datasets.CIFAR10(root, download=
False, image_set='train', transforms=None, verbose=False)¶ CIFAR10 Dataset as NumPy arrays.
- Parameters:¶
- root : str or pathlib.Path¶
Root directory of dataset where the
mnistfolder exists.- download : bool, default False¶
If True, downloads the dataset from the internet and puts it in root directory. Class checks to see if data is already downloaded to ensure it does not create a duplicate download.
- image_set : "train", "test" or "base", default "train"¶
If “base”, returns all of the data to allow the user to create their own splits.
- transforms : Transform, Sequence[Transform] or None, default None¶
Transform(s) to apply to the data.
- verbose : bool, default False¶
If True, outputs print statements.
- index2label¶
Dictionary which translates from class integers to the associated class strings.
- Type:¶
dict[int, str]
- label2index¶
Dictionary which translates from class strings to the associated class integers.
- Type:¶
dict[str, int]