Constructor
new LogisticRegressionModel()
- Source:
Extends
Methods
Parameters:
Name |
Type |
Description |
path |
string
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/mllib/classification.LogisticRegressionModel
- Source:
Returns:
-
Type
-
module:eclairjs/ml/util.MLReader
- Source:
Returns:
-
Type
-
module:eclairjs/mllib/linalg.Vector
Parameters:
- Overrides:
- Source:
Returns:
-
Type
-
module:eclairjs/mllib/classification.LogisticRegressionModel
Evaluates the model on a test dataset.
Parameters:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/classification.LogisticRegressionSummary
Param for features column name.
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.Param
getFeaturesCol() → {string}
- Inherited From:
- Source:
Returns:
-
Type
-
string
getLabelCol() → {string}
- Inherited From:
- Source:
Returns:
-
Type
-
string
getPredictionCol() → {string}
- Inherited From:
- Source:
Returns:
-
Type
-
string
getThreshold() → {float}
- Source:
Returns:
-
Type
-
float
getThresholds() → {Array.<float>}
- Source:
Returns:
-
Type
-
Array.<float>
hasParent() → {boolean}
- Inherited From:
- Source:
Returns:
-
Type
-
boolean
hasSummary() → {boolean}
Indicates whether a training summary exists for this model instance.
- Source:
Returns:
-
Type
-
boolean
intercept() → {float}
- Source:
Returns:
-
Type
-
float
Param for label column name.
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.Param
numClasses() → {int}
- Inherited From:
- Source:
Returns:
-
Type
-
int
numFeatures() → {integer}
- Inherited From:
- Source:
Returns:
-
Type
-
integer
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml.Estimator
Param for prediction column name.
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.Param
setFeaturesCol(value) → {object}
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
object
setParent(parent) → {object}
Sets the parent of this model.
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
object
setPredictionCol(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.ProbabilisticClassificationModel
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/classification.ClassificationModel
Parameters:
Name |
Type |
Description |
value |
float
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/mllib/classification.LogisticRegressionModel
Parameters:
Name |
Type |
Description |
value |
Array.<float>
|
|
- Overrides:
- Source:
Returns:
-
Type
-
module:eclairjs/mllib/classification.LogisticRegressionModel
Gets summary of model on training set. An exception is
thrown if `trainingSummary == None`.
- Source:
Returns:
-
Type
-
module:eclairjs/ml/classification.LogisticRegressionTrainingSummary
Transforms dataset by reading from featuresCol, and appending new columns as specified by
parameters:
- predicted labels as [[predictionCol]] of type Double
- raw predictions (confidences) as [[rawPredictionCol]] of type Vector
- probability of each class as [[probabilityCol]] of type Vector.
Parameters:
- Inherited From:
- Source:
Returns:
transformed dataset
-
Type
-
module:eclairjs/sql.Dataset
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
Validates and transforms the input schema with the provided param map.
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/sql/types.StructType
Returns a MLWriter instance for this ML instance.
For [[LogisticRegressionModel]], this does NOT currently save the training summary.
An option to save summary may be added in the future.
This also does not save the parent currently.
- Source:
Returns:
-
Type
-
module:eclairjs/ml/util.MLWriter