skeltorch.Execution

class skeltorch.Execution(logger)

Skeltorch execution class.

An execution object stores information related to the execution of a command. It includes not only which command has been called, but also its arguments and other auxiliary information.

Arguments are automatically passed as function parameters if specified inside command_args_keys of create_command(). Read our tutorial “Creating custom pipelines” to get details about the exact procedure.

logger

Logger object.

Type:logging.Logger
command

Name of the executed command.

Type:str
args

Dictionary containing the arguments of the execution.

Type:dict
load(self, args)

Loads the executed command and its arguments inside the execution.

It also sets the default values of --experiments-path and --data-path if the user has not provided them manually.

Parameters:args (argparse.Namespace) – Arguments of the execution in raw format.
Raises:ValueError – Raised when one of the argument is not valid.