torch_concepts.data.datasets.mnist.PartialMNISTAddition¶
- class PartialMNISTAddition(root, train, target_transform=None, download=True)[source]¶
The partial MNIST addition dataset is a modified version of the MNIST addition dataset where the concept annotation is partial. The concept associated with the second digit is not provided.
- __init__(root, train, target_transform=None, download=True)¶
Methods
__init__(root, train[, target_transform, ...])download()Download the MNIST data if it doesn't exist already.
extra_repr()Attributes
class_to_idxclassesinput_diminput_shapemirrorsn_tasksprocessed_folderraw_folderresourcestask_namestest_datatest_filetest_labelstrain_datatrain_labelstraining_filetransform