@@ -64,13 +64,12 @@ class SequentialFeatureSelector(SelectorMixin, MetaEstimatorMixin, BaseEstimator
64
64
direction : {'forward', 'backward'}, default='forward'
65
65
Whether to perform forward selection or backward selection.
66
66
67
- scoring : str, callable, list/tuple or dict , default=None
67
+ scoring : str or callable , default=None
68
68
A single str (see :ref:`scoring_parameter`) or a callable
69
69
(see :ref:`scoring`) to evaluate the predictions on the test set.
70
70
71
- NOTE that when using custom scorers, each scorer should return a single
72
- value. Metric functions returning a list/array of values can be wrapped
73
- into multiple scorers that return one value each.
71
+ NOTE that when using a custom scorer, it should return a single
72
+ value.
74
73
75
74
If None, the estimator's score method is used.
76
75
@@ -156,14 +155,7 @@ class SequentialFeatureSelector(SelectorMixin, MetaEstimatorMixin, BaseEstimator
156
155
],
157
156
"tol" : [None , Interval (Real , 0 , None , closed = "neither" )],
158
157
"direction" : [StrOptions ({"forward" , "backward" })],
159
- "scoring" : [
160
- None ,
161
- StrOptions (set (get_scorer_names ())),
162
- callable ,
163
- list ,
164
- dict ,
165
- tuple ,
166
- ],
158
+ "scoring" : [None , StrOptions (set (get_scorer_names ())), callable ],
167
159
"cv" : ["cv_object" ],
168
160
"n_jobs" : [None , Integral ],
169
161
}
0 commit comments