Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7b21cfb

Browse filesBrowse files
committed
FIX _parameter_constraints BaseSGF
1 parent 306a5fa commit 7b21cfb
Copy full SHA for 7b21cfb

File tree

1 file changed

+0
-5
lines changed
Filter options

1 file changed

+0
-5
lines changed

‎sklearn/linear_model/_stochastic_gradient.py

Copy file name to clipboardExpand all lines: sklearn/linear_model/_stochastic_gradient.py
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,13 @@ class BaseSGD(SparseCoefMixin, BaseEstimator, metaclass=ABCMeta):
8080
"""Base class for SGD classification and regression."""
8181

8282
_parameter_constraints: dict = {
83-
"penalty": [StrOptions({"l2", "l1", "elasticnet"}), None],
84-
"alpha": [Interval(Real, 0, None, closed="left")],
8583
"C": [Interval(Real, 0, None, closed="right")],
86-
"l1_ratio": [Interval(Real, 0, 1, closed="both")],
8784
"fit_intercept": ["boolean"],
8885
"max_iter": [Interval(Integral, 1, None, closed="left")],
8986
"tol": [Interval(Real, 0, None, closed="left"), None],
9087
"shuffle": ["boolean"],
9188
"random_state": ["random_state"],
9289
"verbose": ["verbose"],
93-
"eta0": [Interval(Real, 0, None, closed="left")],
94-
"power_t": [Interval(Real, None, None, closed="neither")],
9590
"early_stopping": ["boolean"],
9691
"validation_fraction": [Interval(Real, 0, 1, closed="neither")],
9792
"n_iter_no_change": [Interval(Integral, 1, None, closed="left")],

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.