vak.config.model.config_from_toml_path#

vak.config.model.config_from_toml_path(toml_path: str | Path, model_name: str) dict[source]#

Get configuration for a model from a .toml configuration file, given the path to the file.

Parameters:

toml_path (str, Path) –

to configuration file in .toml format model_name : str

of str, i.e. names of models specified by a section (such as TRAIN or PREDICT) that should each have corresponding sections specifying their configuration: hyperparameters such as learning rate, etc.

Returns:

model_config – Model configuration in a dict, as loaded from a .toml file, and used by the model method from_config.

Return type:

dict