bitorch.models.model_hub.get_model_path¶
- bitorch.models.model_hub.get_model_path(version_table: DataFrame, model_kwargs: dict) Tuple[str, str] [source]¶
finds the matching row for model_kwargs in version table and path to model artifact for given configuration
- Parameters:
version_table (pandas.DataFrame) – version table with model configurations and corresponding model hub versions
model_kwargs (dict) – model configuration to search for
- Raises:
RuntimeError – thrown if no matching model can be found in version table
- Returns:
path to matching model hub artifact
- Return type:
str