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
Performance metric classes do not work when using the combination multilevel="raw_values" with either multioutput="uniform_average" or custom weights for multioutput.
To Reproduce
Using MeanAbsoluteError, but the error does not remain to this class.
…es is not hierarchical (#6418)
This PR allows metric classes to be called with `multilevel` arg in all
cases, if the series is not hierarchical. Previously, this would crash
the metric.
This PR changes behaviour in this degenerate case so a single-entry
`pd.DataFrame` is returned.
Fixes#6413
Describe the bug
Performance metric classes do not work when using the combination multilevel="raw_values" with either multioutput="uniform_average" or custom weights for multioutput.
To Reproduce
Using MeanAbsoluteError, but the error does not remain to this class.
Output:
ValueError: DataFrame constructor not properly called!
Expected behavior
Both the output of mae and mae_custom_multitoutput_weights with custom multioutput weights should not throw an error.
Additional context
It seems like the wrapper class around the inner metric function fails to coerse the evaluations in the expected output format.
Versions
0.28.0
The text was updated successfully, but these errors were encountered: