ModelArguments#

class caf.toolkit.arguments.ModelArguments(model)[source]#

Base class for defining command-line arguments from pydantic.BaseModel.

Methods

__init__(model)

Check model type.

add_arguments(parser)

Add arguments to command-line parser and adds dataclass_parse_func.

add_config_arguments(parser)

Add config argument to command-line parser and adds dataclass_parse_func.

add_subcommands(subparsers, name[, ...])

Add sub-commands for CLI arguments and config (if possible).

Examples using caf.toolkit.arguments.ModelArguments#

Using BaseConfig

Using BaseConfig
Parameters:

model (type)