vak.config.validators.are_table_keys_valid¶
- vak.config.validators.are_table_keys_valid(table_config_dict: dict, table_name: str, toml_path: str | Path | None = None) None[source]¶
Given a
dictcontaining the configuration for a specific top-level table, loaded from a toml file, validate the key names for that table, e.g.vak.trainorvak.predict.This function assumes
table_config_dictcomes from the entireconfig_dictreturned byvak.config.parse.from_toml_path(), accessed using the table name as a key, unlikeare_keys_valid(). This function is used by thefrom_config_dictclassmethod of the top-level tables.