legacy_uid()

audmodel.legacy_uid(name, params, version, *, subgroup=None, private=False)[source]

Unique model ID in legacy format.

Parameters
  • name (str) – model name

  • params (dict[str, object]) – dictionary with parameters

  • version (str) – version string

  • subgroup (Optional[str]) – extend group ID to com.audeering.models.<subgroup>. You can increase the depth by using dot-notation, e.g. setting subgroup=foo.bar will result in com.audeering.models.foo.bar

  • private (bool) – repository is private

Return type

str

Returns

unique model ID

Examples

>>> legacy_uid(
...     "test",
...     {
...         "model": "cnn10",
...         "data": "emodb",
...         "feature": "melspec",
...         "sampling_rate": 16000,
...     },
...     subgroup="audmodel.dummy.cnn",
...     version="1.0.0",
... )
'65206614-dbb7-d61a-b00c-153db7b525c0'