Constructor
new ClassificationModel()
- Source:
Extends
Methods
copy(extra) → {object}
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
object
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
hasParent() → {boolean}
- Inherited From:
- Source:
Returns:
-
Type
-
boolean
Param for label column name.
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.Param
numClasses() → {int}
- 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
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/classification.ClassificationModel
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.
Parameters:
- Overrides:
- Source:
Returns:
transformed dataset
-
Type
-
module:eclairjs/sql.Dataset
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/sql/types.StructType
Validates and transforms the input schema with the provided param map.
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/sql/types.StructType