You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: third_party/bigframes_vendored/sklearn/linear_model/_base.py
+8-2
Original file line number
Diff line number
Diff line change
@@ -71,18 +71,24 @@ class LinearRegression(RegressorMixin, LinearModel):
71
71
Default ``True``. Whether to calculate the intercept for this
72
72
model. If set to False, no intercept will be used in calculations
73
73
(i.e. data is expected to be centered).
74
+
l1_reg (float or None, default None):
75
+
The amount of L1 regularization applied. Default to None. Can't be set in "normal_equation" mode. If unset, value 0 is used.
74
76
l2_reg (float, default 0.0):
75
77
The amount of L2 regularization applied. Default to 0.
76
78
max_iterations (int, default 20):
77
79
The maximum number of training iterations or steps. Default to 20.
80
+
warm_start (bool, default False):
81
+
Determines whether to train a model with new training data, new model options, or both. Unless you explicitly override them, the initial options used to train the model are used for the warm start run. Default to False.
82
+
learn_rate (float or None, default None):
83
+
The learn rate for gradient descent when learn_rate_strategy='constant'. If unset, value 0.1 is used. If learn_rate_strategy='line_search', an error is returned.
78
84
learn_rate_strategy (str, default "line_search"):
79
85
The strategy for specifying the learning rate during training. Default to "line_search".
80
86
early_stop (bool, default True):
81
87
Whether training should stop after the first iteration in which the relative loss improvement is less than the value specified for min_rel_progress. Default to True.
82
88
min_rel_progress (float, default 0.01):
83
89
The minimum relative loss improvement that is necessary to continue training when EARLY_STOP is set to true. For example, a value of 0.01 specifies that each iteration must reduce the loss by 1% for training to continue. Default to 0.01.
84
-
ls_init_learn_rate (float, default 0.1):
85
-
Sets the initial learning rate that learn_rate_strategy='line_search' uses. This option can only be used if line_search is specified. Default to 0.1.
90
+
ls_init_learn_rate (float or None, default None):
91
+
Sets the initial learning rate that learn_rate_strategy='line_search' uses. This option can only be used if line_search is specified. If unset, value 0.1 is used.
86
92
calculate_p_values (bool, default False):
87
93
Specifies whether to compute p-values and standard errors during training. Default to False.
0 commit comments