version()¶
- audmodel.version(uid, *, cache_root=None, verbose=False)[source]¶
Version of model.
- Parameters
uid (
str
) – unique model ID or short ID for latest versioncache_root (
Optional
[str
]) – cache folder where models and headers are stored. If not setaudmodel.default_cache_root()
is usedverbose (
bool
) – show debug messages
- Return type
- Returns
model version
- Raises
audbackend.BackendError – if connection to repository on backend cannot be established
RuntimeError – if model does not exist
Examples
>>> version("d4e9c65b-3.0.0") '3.0.0'