We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you have a mixture of string entries and NaN, audmetric.utils.infer_labels() will fail:
NaN
audmetric.utils.infer_labels()
>>> audmetric.utils.infer_labels(['a', 'b'], ['a', np.NaN]) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-c5231a7963ad> in <module> ----> 1 audmetric.utils.infer_labels(['a', 'b'], ['a', np.NaN]) ~/git/audeering/audmetric/audmetric/core/utils.py in infer_labels(truth, prediction) 33 34 """ ---> 35 return sorted(list(set(truth) | set(prediction))) 36 37 TypeError: '<' not supported between instances of 'str' and 'float'
whereas the expected result should be ['a', 'b'].
['a', 'b']
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
If you have a mixture of string entries and
NaN
,audmetric.utils.infer_labels()
will fail:whereas the expected result should be
['a', 'b']
.The text was updated successfully, but these errors were encountered: