You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When generating a model prediction involving an audio feature and the data set contains only one record, a ZeroDvisionError exception is raised in ludwig.utils.audio_utils.calcuate_var() function. The error occurs because the variable count = 1 which results in a zero in the denominator of this expression:
Describe the bug
When generating a model prediction involving an audio feature and the data set contains only one record, a
ZeroDvisionError
exception is raised inludwig.utils.audio_utils.calcuate_var()
function. The error occurs because the variablecount = 1
which results in a zero in the denominator of this expression:To Reproduce
Steps to reproduce the behavior:
Run unit test
test_server.py
Expected behavior
Successful prediction with only a single record.
Log file
Here is log and error messages:
Environment (please complete the following information):
Additional context
As short-term work-around modified denominator to be
max(1, count-1)
.The text was updated successfully, but these errors were encountered: