NOTEBOOKS#
Functions#
- utils.notebooks.get_avail_args(dataset=None, model=None, args={})[source]#
Get the available arguments for the Mammoth framework. This function returns two lists: one for required arguments and one for optional arguments. Each list contains dictionaries with: - the name of the argument as the key - a dictionary with the ‘default’ and ‘description’ of the argument as the value Note that the ‘default’ key is only present for optional arguments.
- utils.notebooks.initalize_args(model_name, dataset_name, args)[source]#
Initialize the namespace with the given model and dataset names, and additional arguments.
- Parameters:
- Returns:
A namespace containing the model and dataset names, and additional arguments.
- Return type:
Namespace
- utils.notebooks.load_runner(model, dataset, args)[source]#
Load the model and dataset for the given experiment. :param model_name: The name of the model to be used. :type model_name: str :param dataset_name: The name of the dataset to be used. :type dataset_name: str :param args: A dictionary containing the arguments for the experiment. :type args: dict
- Returns:
A tuple containing the model and dataset.
- Return type:
Tuple[ContinualModel, ContinualDataset]
- utils.notebooks.get_avail_args(dataset=None, model=None, args={})[source]#
Get the available arguments for the Mammoth framework. This function returns two lists: one for required arguments and one for optional arguments. Each list contains dictionaries with: - the name of the argument as the key - a dictionary with the ‘default’ and ‘description’ of the argument as the value Note that the ‘default’ key is only present for optional arguments.
- utils.notebooks.initalize_args(model_name, dataset_name, args)[source]#
Initialize the namespace with the given model and dataset names, and additional arguments.
- Parameters:
- Returns:
A namespace containing the model and dataset names, and additional arguments.
- Return type:
Namespace
- utils.notebooks.load_runner(model, dataset, args)[source]#
Load the model and dataset for the given experiment. :param model_name: The name of the model to be used. :type model_name: str :param dataset_name: The name of the dataset to be used. :type dataset_name: str :param args: A dictionary containing the arguments for the experiment. :type args: dict
- Returns:
A tuple containing the model and dataset.
- Return type:
Tuple[ContinualModel, ContinualDataset]