Constructor
new LogisticRegression(uidopt)
Parameters:
Name |
Type |
Attributes |
Description |
uid |
string
|
<optional>
|
|
- Source:
Extends
Methods
Parameters:
Name |
Type |
Description |
path |
string
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/classification.LogisticRegression
Parameters:
- Overrides:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/classification.LogisticRegression
explainParams() → {string}
FIXME from Param
- Source:
Returns:
-
Type
-
string
- 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
getThreshold() → {float}
- Source:
Returns:
-
Type
-
float
getThresholds() → {Array.<float>}
- Source:
Returns:
-
Type
-
Array.<float>
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.Param
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.Param
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.Param
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 |
float
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/classification.LogisticRegression
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml.Predictor
Whether to fit an intercept term.
Default is true.
Parameters:
Name |
Type |
Description |
value |
boolean
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/classification.LogisticRegression
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 |
integer
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/classification.LogisticRegression
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml.Predictor
setProbabilityCol(value) → {object}
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
object
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/classification.Classifier
Set the regularization parameter.
Default is 0.0.
Parameters:
Name |
Type |
Description |
value |
float
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/classification.LogisticRegression
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/classification.LogisticRegression
Parameters:
Name |
Type |
Description |
value |
float
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/classification.LogisticRegression
Parameters:
Name |
Type |
Description |
value |
Array.<float>
|
|
- Overrides:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/classification.LogisticRegression
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 |
float
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/classification.LogisticRegression
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/classification.LogisticRegression
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.Param
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.Param
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/sql/types.StructType
uid() → {string}
An immutable unique ID for the object and its derivatives.
- Source:
Returns:
-
Type
-
string