infer_labels()¶
- audmetric.utils.infer_labels(truth, prediction)[source]¶
Infer labels from truth and prediction.
It gathers all labels that are present in the truth and prediction values.
- Parameters
truth (
Sequence
[Any
]) – ground truth labelsprediction (
Sequence
[Any
]) – predicted labels
- Return type
List
[Any
]- Returns
labels in sorted order