Skip to content

Commit 2931627

Browse files
committed
FIX RidgeClassifierCV didn't have scoring parameter
... but is advertised as having one
1 parent 060d264 commit 2931627

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sklearn/linear_model/ridge.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,11 +1027,11 @@ class RidgeClassifierCV(LinearClassifierMixin, _BaseRidgeCV):
10271027
advantage of the multi-variate response support in Ridge.
10281028
"""
10291029
def __init__(self, alphas=np.array([0.1, 1.0, 10.0]), fit_intercept=True,
1030-
normalize=False, score_func=None, loss_func=None, cv=None,
1031-
class_weight=None):
1030+
normalize=False, scoring=None, score_func=None,
1031+
loss_func=None, cv=None, class_weight=None):
10321032
super(RidgeClassifierCV, self).__init__(
10331033
alphas=alphas, fit_intercept=fit_intercept, normalize=normalize,
1034-
score_func=score_func, loss_func=loss_func, cv=cv)
1034+
scoring=scoring, score_func=score_func, loss_func=loss_func, cv=cv)
10351035
self.class_weight = class_weight
10361036

10371037
def fit(self, X, y, sample_weight=None, class_weight=None):

0 commit comments

Comments
 (0)