Closed
Description
Describe the bug
Raised in #28373 (comment).
The average
parameter in BaseSGD
(which propagates to SGDRegressor
, SGDClassifier
and SGDOneClassSVM
) is constrained to non-negative integers or boolean values: "average": [Interval(Integral, 0, None, closed="left"), bool, np.bool_]
.
This seems to be at odds with average=0
seemingly meaning average=True
which contradicts the typical truth-evaluation of 0
.
Steps/Code to Reproduce
Expected Results
Actual Results
Versions
This is in the main branch right now.