activelearning.utils.config_loader
Attributes
Functions
|
Load and merge one or more YAML config files, then apply CLI overrides. |
|
|
|
Module Contents
- activelearning.utils.config_loader.ModelT
- activelearning.utils.config_loader.load_config(
- path: str | pathlib.Path | list[str | pathlib.Path],
- overrides: list[str] | None = None,
Load and merge one or more YAML config files, then apply CLI overrides.
- Parameters:
path (str | Path | list[str | Path]) – A single YAML file path or an ordered list of paths. When a list is provided, files are merged left to right: later files override earlier ones for any shared keys.
overrides (list[str] | None) – OmegaConf dotlist overrides applied on top of the merged config, e.g.
["budget.available_budget=10", "sampler.num_samples=500"].
- Returns:
The merged OmegaConf config object. Schema validation is performed separately via
parse_configusing a Pydantic model.- Return type:
DictConfig