8000 MAINT Use appropriate boolean constraint alias for param validation i… · jeremiedbb/scikit-learn@7363a53 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7363a53

Browse files
authored
MAINT Use appropriate boolean constraint alias for param validation in SGD (scikit-learn#28573)
1 parent 33cde65 commit 7363a53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sklearn/linear_model/_stochastic_gradient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class BaseSGD(SparseCoefMixin, BaseEstimator, metaclass=ABCMeta):
9090
"verbose": ["verbose"],
9191
"random_state": ["random_state"],
9292
"warm_start": ["boolean"],
93-
"average": [Interval(Integral, 0, None, closed="left"), bool, np.bool_],
93+
"average": [Interval(Integral, 0, None, closed="left"), "boolean"],
9494
}
9595

9696
def __init__(

sklearn/utils/_param_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ class _Booleans(_Constraint):
578578
"""Constraint representing boolean likes.
579579
580580
Convenience class for
581-
[bool, np.bool_, Integral (deprecated)]
581+
[bool, np.bool_]
582582
"""
583583

584584
def __init__(self):

0 commit comments

Comments
 (0)
0