nip.model_cache.get_cached_models_path#
- nip.model_cache.get_cached_models_path(hyper_params: HyperParameters | dict, subdir: str) Path [source]#
Get the path to the directory containing the models with the given parameters.
- Parameters:
hyper_params (HyperParameters | dict) – The parameters which specify the models.
subdir (str) – The subdirectory in which to look for the saved models.
- Returns:
pathlib.Path – The path to the directory containing the models with the given parameters.
- Raises:
ModelNotFoundError – If the directory is not found.