Constructor
new NaiveBayes(uidopt)
Parameters:
Name |
Type |
Attributes |
Description |
uid |
string
|
<optional>
|
|
- Source:
Extends
Methods
(static) load(path) → {NaiveBayes}
Parameters:
Name |
Type |
Description |
path |
string
|
|
- Source:
Returns:
-
Type
-
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:
- Overrides:
- Source:
Returns:
fitted model
-
Type
-
module:eclairjs/ml/classification.LogisticRegressionModel
getFeaturesCol() → {Promise.<string>}
- Source:
Returns:
-
Type
-
Promise.<string>
getLabelCol() → {Promise.<string>}
- Source:
Returns:
-
Type
-
Promise.<string>
getModelType() → {Promise.<string>}
- Source:
Returns:
-
Type
-
Promise.<string>
getPredictionCol() → {Promise.<string>}
- Source:
Returns:
-
Type
-
Promise.<string>
getSmoothing() → {Promise.<Number>}
- Source:
Returns:
-
Type
-
Promise.<Number>
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 |
number
|
|
- 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
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 |
- Source:
Returns:
-
Type
-
module:eclairjs/sql/types.StructType
write() → {module:eclairjs/ml/util.MLWriter}
- Source:
Returns:
-
Type
-
module:eclairjs/ml/util.MLWriter