@@ -121,7 +121,6 @@ def _ridge_cv_hp_space(
121121 fit_intercept : bool = True ,
122122 scoring : typing .Union [str , callable ] = None ,
123123 cv : typing .Union [int , Iterable , typing .Generator , Apply ] = None ,
124- store_cv_results : bool = False ,
125124 ** kwargs
126125):
127126 """
@@ -134,7 +133,6 @@ def _ridge_cv_hp_space(
134133 fit_intercept = fit_intercept ,
135134 scoring = scoring ,
136135 cv = _ridge_cv (name_func ("cv" )) if cv is None else cv ,
137- store_cv_restults = store_cv_results ,
138136 ** kwargs
139137 )
140138 return hp_space
@@ -166,6 +164,7 @@ def _name(msg):
166164def ridge_cv (name : str ,
167165 gcv_mode : typing .Union [str , Apply ] = "auto" ,
168166 alpha_per_target : bool = False ,
167+ store_cv_results : bool = False ,
169168 ** kwargs ):
170169 """
171170 Return a pyll graph with hyperparameters that will construct
@@ -186,6 +185,7 @@ def _name(msg):
186185 hp_space = _ridge_cv_hp_space (_name , ** kwargs )
187186 hp_space ["gcv_mode" ] = gcv_mode
188187 hp_space ["alpha_per_target" ] = alpha_per_target
188+ hp_space ["store_cv_results" ] = store_cv_results
189189
190190 return scope .sklearn_RidgeCV (** hp_space )
191191
@@ -218,7 +218,10 @@ def _name(msg):
218218@validate (params = ["class_weight" ],
219219 validation_test = lambda param : not isinstance (param , str ) or param == "balanced" ,
220220 msg = "Invalid parameter '%s' with value '%s'. Value must be 'balanced'" )
221- def ridge_classifier_cv (name : str , class_weight : typing .Union [dict , str ] = None , ** kwargs ):
221+ def ridge_classifier_cv (name : str ,
222+ class_weight : typing .Union [dict , str ] = None ,
223+ store_cv_results : bool = False ,
224+ ** kwargs ):
222225 """
223226 Return a pyll graph with hyperparameters that will construct
224227 a sklearn.linear_model.RidgeClassifierCV model.
@@ -236,5 +239,6 @@ def _name(msg):
236239
237240 hp_space = _ridge_cv_hp_space (_name , ** kwargs )
238241 hp_space ["class_weight" ] = class_weight
242+ hp_space ["store_cv_results" ] = store_cv_results
239243
240244 return scope .sklearn_RidgeClassifierCV (** hp_space )
0 commit comments