vak.config.model.config_from_toml_dict#

vak.config.model.config_from_toml_dict(toml_dict: dict, model_name: str) dict[source]#

Get configuration for a model from a .toml configuration file loaded into a dict.

Parameters:
  • toml_dict (dict) – Configuration from a .toml file, loaded into a dictionary.

  • model_name (str) – Name of a model, specified as the model option in a table (such as TRAIN or PREDICT), that should have its own corresponding table specifying its 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