continual_dataset#
Classes
- class datasets.utils.continual_dataset.ContinualDataset(args)[source]#
Bases:
objectA base class for defining continual learning datasets.
- train_loader#
the training loader
- Type:
DataLoader
- test_loaders#
the test loaders
- Type:
List[DataLoader]
- args#
the arguments which contains the hyperparameters
- Type:
Namespace
- AVAIL_SCHEDS = ['multisteplr']#
- static get_backbone()[source]#
Returns the backbone to be used for the current dataset.
- Return type:
- get_data_loaders()[source]#
Creates and returns the training and test loaders for the current task. The current training loader and all test loaders are stored in self. :return: the current training and test loaders
- Return type:
- static get_denormalization_transform()[source]#
Returns the transform used for denormalizing the current dataset.
- Return type:
- classmethod get_minibatch_size()[source]#
Returns the minibatch size to be used for the current dataset.
- static get_normalization_transform()[source]#
Returns the transform used for normalizing the current dataset.
- Return type:
Functions
- datasets.utils.continual_dataset.store_masked_loaders(train_dataset, test_dataset, setting)[source]#
Divides the dataset into tasks.
- datasets.utils.continual_dataset.train_dataset#
the training dataset
- Type:
Dataset
- datasets.utils.continual_dataset.test_dataset#
the test dataset
- Type:
Dataset
- datasets.utils.continual_dataset.setting#
the setting of the dataset
- Type:
- Returns:
the training and test loaders
- Return type: