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
dict
containing the configuration for a specific top-level table, loaded from a toml file, validate the key names for that table, e.g.vak.train
orvak.predict
.This function assumes
table_config_dict
comes from the entireconfig_dict
returned byvak.config.parse.from_toml_path()
, accessed using the table name as a key, unlikeare_keys_valid()
. This function is used by thefrom_config_dict
classmethod of the top-level tables.