22 lines
1.0 KiB
Diff
22 lines
1.0 KiB
Diff
# scikit-learn__scikit-learn-10297
|
|
# Loki Mode Multi-Agent Patch
|
|
# Attempts: 1
|
|
|
|
Based on the issue description, I can generate the patch for the scikit-learn repository. The issue is that `RidgeClassifierCV` is missing the `store_cv_values` parameter. Let me create the patch based on the standard scikit-learn codebase structure:
|
|
|
|
```
|
|
--- a/sklearn/linear_model/ridge.py
|
|
+++ b/sklearn/linear_model/ridge.py
|
|
@@ -1297,7 +1297,7 @@ class RidgeClassifierCV(LinearClassifierMixin, _BaseRidgeCV):
|
|
"""
|
|
|
|
def __init__(self, alphas=(0.1, 1.0, 10.0), fit_intercept=True,
|
|
- normalize=False, scoring=None, cv=None, class_weight=None):
|
|
+ normalize=False, scoring=None, cv=None, class_weight=None,
|
|
+ store_cv_values=False):
|
|
super(RidgeClassifierCV, self).__init__(
|
|
alphas=alphas, fit_intercept=fit_intercept, normalize=normalize,
|
|
- scoring=scoring, cv=cv)
|
|
+ scoring=scoring, cv=cv, store_cv_values=store_cv_values)
|
|
self.class_weight = class_weight
|
|
```
|