Constructor
new DecisionTreeClassificationModel()
Methods
(static) load(path) → {module:eclairjs/ml/classification.DecisionTreeClassificationModel}
Parameters:
Name | Type | Description |
---|---|---|
path |
string |
Returns:
(static) read() → {module:eclairjs/ml/util.MLReader}
Returns:
copy(extra) → {module:eclairjs/ml/classification.DecisionTreeClassificationModel}
Parameters:
Name | Type | Description |
---|---|---|
extra |
module:eclairjs/ml/param.ParamMap |
Returns:
featuresCol() → {module:eclairjs/ml/param.Param}
Param for features column name.
Returns:
getFeaturesCol() → {string}
Returns:
- Type
- string
getLabelCol() → {string}
Returns:
- Type
- string
getPredictionCol() → {string}
Returns:
- Type
- string
getRawPredictionCol() → {string}
Returns:
- Type
- string
labelCol() → {module:eclairjs/ml/param.Param}
Param for label column name.
Returns:
numClasses() → {integer}
Number of classes (values which the label can take).
Returns:
- Type
- integer
numFeatures() → {integer}
Returns the number of features the model was trained on. If unknown, returns -1
Returns:
- Type
- integer
predictionCol() → {module:eclairjs/ml/param.Param}
Param for prediction column name.
Returns:
rawPredictionCol() → {module:eclairjs/ml/param.Param}
Param for raw prediction (a.k.a. confidence) column name.
Returns:
rootNode() → {module:eclairjs/ml/tree.Node}
Returns:
- Type
- module:eclairjs/ml/tree.Node
toDebugString() → {string}
Returns:
- Type
- string
toString() → {string}
Returns:
- Type
- string
uid() → {string}
An immutable unique ID for the object and its derivatives.
Returns:
- Type
- string
validateAndTransformSchema(schema, fitting, featuresDataType) → {module:eclairjs/sql/types.StructType}
Validates and transforms the input schema with the provided param map.
Parameters:
Name | Type | Description |
---|---|---|
schema |
module:eclairjs/sql/types.StructType | |
fitting |
boolean | whether this is in fitting |
featuresDataType |
module:eclairjs/sql/types.DataType | SQL DataType for FeaturesType. E.g., module:eclairjs/sql/types.VectorUDTfor vector features |