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