Constructor
new NaiveBayes(uidopt)
Parameters:
Name |
Type |
Attributes |
Description |
uid |
string
|
<optional>
|
|
- Source:
Extends
Methods
Parameters:
Name |
Type |
Description |
path |
string
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/mllib/classification.NaiveBayes
Parameters:
- Overrides:
- Source:
Returns:
-
Type
-
module:eclairjs/mllib/classification.NaiveBayes
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.ParamMap
Param for features column name.
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.Param
Fits a model to the input data.
Parameters:
- Inherited From:
- Source:
Returns:
fitted model
-
Type
-
module:eclairjs/ml.Estimator
|
module:eclairjs/ml/feature.Bucketizer
getFeaturesCol() → {string}
- Source:
Returns:
-
Type
-
string
getLabelCol() → {string}
- Source:
Returns:
-
Type
-
string
getModelType() → {string}
- Source:
Returns:
-
Type
-
string
getPredictionCol() → {string}
- Source:
Returns:
-
Type
-
string
getSmoothing() → {double}
- Source:
Returns:
-
Type
-
double
Param for label column name.
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.Param
The model type which is a string (case-sensitive). Supported options: "multinomial" and "bernoulli". (default = multinomial)
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.Param
Param for prediction column name.
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.Param
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.Param
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml.Predictor
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml.Predictor
Set the model type using a string (case-sensitive).
Supported options: "multinomial" and "bernoulli".
Default is "multinomial"
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/mllib/classification.NaiveBayes
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 smoothing parameter.
Default is 1.0.
Parameters:
Name |
Type |
Description |
value |
float
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/mllib/classification.NaiveBayes
setThresholds(value) → {object}
Parameters:
Name |
Type |
Description |
value |
Array.<float>
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
object
The smoothing parameter. (default = 1.0).
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.DoubleParam
- 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
Validates and transforms the input schema with the provided param map.
Parameters:
- Source:
Returns:
-
Type
-
module:eclairjs/sql/types.StructType
- Source:
Returns:
-
Type
-
module:eclairjs/ml/util.MLWriter