ertk.sklearn.models.SkWrapperConfig
- class ertk.sklearn.models.SkWrapperConfig(kwargs: dict[str, typing.Any] = <factory>, transform: str | None = 'std', transform_kwargs: dict[str, typing.Any] = <factory>, param_grid: dict[str, typing.Any] = <factory>, param_grid_path: str | None = None)
Bases:
SkModelConfigConfiguration for a scikit-learn model wrapper.
- __init__(kwargs: dict[str, typing.Any] = <factory>, transform: str | None = 'std', transform_kwargs: dict[str, typing.Any] = <factory>, param_grid: dict[str, typing.Any] = <factory>, param_grid_path: str | None = None) None
Methods
Inherited Methods
__init__([kwargs, transform, ...])default()Create default config.
from_config(config)Create config object from any compatible config.
from_file(path)Create config from YAML file and optionlly override some values.
merge_with_args(args)Merge config with command-line arguments.
merge_with_config(config)Merge other config into this config.
to_dictconfig()Convert config to DictConfig.
to_file(path)Write config to YAML file.
to_string()Generate YAML string representation of config.
Attributes
The name of the model to wrap.
param_grid_pathThe path to a YAML file containing the parameter grid to use for grid search.
transformThe name of the transform to use.