Constructor
new GeneralizedLinearRegression(uid)
Parameters:
Name |
Type |
Description |
uid |
string
|
|
- Source:
Extends
Methods
Parameters:
Name |
Type |
Description |
path |
string
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.GeneralizedLinearRegression
Parameters:
- Overrides:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.GeneralizedLinearRegression
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.ParamMap
Parameters:
- Overrides:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.LinearRegressionModel
setFamily(value) → {type}
Sets the value of param family.
Default is "gaussian".
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Source:
Returns:
-
Type
-
type
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.GeneralizedLinearRegression
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml.Predictor
Sets the value of param link.
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.GeneralizedLinearRegression
Sets the link prediction (linear predictor) column name.
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.GeneralizedLinearRegression
Sets the maximum number of iterations (applicable for solver "irls").
Default is 25.
Parameters:
Name |
Type |
Description |
value |
number
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.GeneralizedLinearRegression
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml.Predictor
Sets the regularization parameter for L2 regularization.
The regularization term is
Parameters:
Name |
Type |
Description |
value |
number
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.GeneralizedLinearRegression
Example
0.5 * regParam * L2norm(coefficients)^2
Default is 0.0.
Sets the solver algorithm used for optimization.
Currently only supports "irls" which is also the default solver.
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.GeneralizedLinearRegression
Sets 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.GeneralizedLinearRegression
Sets the value of param weightCol.
If this is not set or empty, we treat all instance weights as 1.0.
Default is not set, so all instances have weight one.
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/regression.GeneralizedLinearRegression
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/sql/types.StructType
uid() → {Promise.<string>}
An immutable unique ID for the object and its derivatives.
- Source:
Returns:
-
Type
-
Promise.<string>