Constructor
new LinearRegression(uidopt)
Parameters:
Name |
Type |
Attributes |
Description |
uid |
string
|
<optional>
|
|
- Source:
Extends
Methods
Parameters:
Name |
Type |
Description |
path |
string
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.LinearRegression
Parameters:
- Overrides:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.LinearRegression
Param for the ElasticNet mixing parameter, in range [0, 1]. For alpha = 0, the penalty is an L2 penalty. For alpha = 1,
it is an L1 penalty.
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.DoubleParam
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.ParamMap
Fits a model to the input data.
Parameters:
- Inherited From:
- Source:
Returns:
fitted model
-
Type
-
module:eclairjs/ml.Estimator
|
module:eclairjs/ml/feature.Bucketizer
Param for whether to fit an intercept term.
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.BooleanParam
Param for regularization parameter (>= 0).
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.DoubleParam
Set the ElasticNet mixing parameter.
For alpha = 0, the penalty is an L2 penalty. For alpha = 1, it is an L1 penalty.
For 0 < alpha < 1, the penalty is a combination of L1 and L2.
Default is 0.0 which is an L2 penalty.
Parameters:
Name |
Type |
Description |
value |
number
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.LinearRegression
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml.Predictor
Set if we should fit the intercept
Default is true.
Parameters:
Name |
Type |
Description |
value |
boolean
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.LinearRegression
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml.Predictor
Set the maximum number of iterations.
Default is 100.
Parameters:
Name |
Type |
Description |
value |
number
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.LinearRegression
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml.Predictor
Set the regularization parameter.
Default is 0.0.
Parameters:
Name |
Type |
Description |
value |
number
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.LinearRegression
Set the solver algorithm used for optimization.
In case of linear regression, this can be "l-bfgs", "normal" and "auto".
"l-bfgs" denotes Limited-memory BFGS which is a limited-memory quasi-Newton
optimization method. "normal" denotes using Normal Equation as an analytical
solution to the linear regression problem.
The default value is "auto" which means that the solver algorithm is
selected automatically.
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.LinearRegression
Whether to standardize the training features before fitting the model.
The coefficients of models will be always returned on the original scale,
so it will be transparent for users. Note that with/without standardization,
the models should be always converged to the same solution when no regularization
is applied. In R's GLMNET package, the default behavior is true as well.
Default is true.
Parameters:
Name |
Type |
Description |
value |
boolean
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.LinearRegression
Set the convergence tolerance of iterations.
Smaller value will lead to higher accuracy with the cost of more iterations.
Default is 1E-6.
Parameters:
Name |
Type |
Description |
value |
number
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.LinearRegression
Whether to over-/under-sample training instances according to the given weights in weightCol.
If empty, all instances are treated equally (weight 1.0).
Default is empty, so all instances have weight one.
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.LinearRegression
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/sql/types.StructType