Skip to content

Commit cf2a875

Browse files
committed
FIX: Fix for changing mode
1 parent 89ddbe2 commit cf2a875

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sklearn/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ def score(self, X, y, sample_weight=None):
343343
"""
344344

345345
from .metrics import r2_score
346-
return r2_score(y, self.predict(X), sample_weight=sample_weight)
346+
return r2_score(y, self.predict(X), sample_weight=sample_weight,
347+
multioutput='variance_weighted')
347348

348349

349350
###############################################################################

0 commit comments

Comments
 (0)