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
Using multioutput=None with the regression metrics in dask_ml.metrics.regression results in an error.
What you expected to happen:
I expected the behavior to be the same as the equivalent scikit-learn metrics functions, where multioutput=None means "all elements have the same weight".
Minimal Complete Verifiable Example:
In scikit-learn, the value of multioutput is passed through to np.average().
What happened:
Using
multioutput=None
with the regression metrics indask_ml.metrics.regression
results in an error.What you expected to happen:
I expected the behavior to be the same as the equivalent
scikit-learn
metrics functions, wheremultioutput=None
means "all elements have the same weight".Minimal Complete Verifiable Example:
In
scikit-learn
, the value ofmultioutput
is passed through tonp.average()
.https://github.com/scikit-learn/scikit-learn/blob/877c6e6db42006445ccf0695c0dde3294ff4dd4a/sklearn/metrics/_regression.py#L195
np.average()
treats the valueNone
as "equally-weighted", which is the same as passingmultioutput = "uniform_average"
. From https://numpy.org/doc/stable/reference/generated/numpy.average.htmlIn
dask-ml
, passingmultioutput=None
results in an error.Anything else we need to know?:
Environment:
output of 'conda list | grep -E "dask|distributed"'
output of 'conda info'
python setup.py install
.The text was updated successfully, but these errors were encountered: