repository()¶
- audmodel.repository(uid, *, cache_root=None)[source]¶
Repository of a model.
Returns the repository in which the model is stored, by searching through
audmodel.config.REPOSITORIES.- Parameters:
uid (
str) – unique model ID (omit version for latest version) or aliascache_root (
str|None) – cache folder where models and headers are stored. If not setaudmodel.default_cache_root()is used
- Return type:
- Returns:
repository that stores the model
- Raises:
audbackend.BackendError – if connection to repository on backend cannot be established
RuntimeError – if model does not exist
Examples
>>> audmodel.repository("d4e9c65b-3.0.0").name 'repo1'