incerto.data.MNIST_vs_NotMNIST#

class incerto.data.MNIST_vs_NotMNIST(root='./data', normalize=True)[source]#

Bases: OODBenchmark

MNIST (ID) vs NotMNIST (OOD) benchmark.

NotMNIST contains letters instead of digits. Note: NotMNIST requires manual download.

Parameters:
__init__(root='./data', normalize=True)[source]#
Parameters:

Methods

__init__([root, normalize])

get_datasets()

Get MNIST (ID) and NotMNIST (OOD) test sets.

get_transforms()

Get data transformations.

__init__(root='./data', normalize=True)[source]#
Parameters:
get_transforms()[source]#

Get data transformations.

Return type:

Compose

get_datasets()[source]#

Get MNIST (ID) and NotMNIST (OOD) test sets.

Return type:

Tuple[Dataset, Dataset]