Interface NaiveBayesParams
- All Superinterfaces:
HasFeaturesCol,HasLabelCol,HasPredictionCol,HasWeightCol,Identifiable,Params,PredictorParams,Serializable,scala.Serializable
- All Known Implementing Classes:
NaiveBayes,NaiveBayesModel
Params for Naive Bayes Classifiers.
-
Method Summary
Modifier and TypeMethodDescriptiondoubleThe model type which is a string (case-sensitive).The smoothing parameter.Methods inherited from interface org.apache.spark.ml.param.shared.HasFeaturesCol
featuresCol, getFeaturesColMethods inherited from interface org.apache.spark.ml.param.shared.HasLabelCol
getLabelCol, labelColMethods inherited from interface org.apache.spark.ml.param.shared.HasPredictionCol
getPredictionCol, predictionColMethods inherited from interface org.apache.spark.ml.param.shared.HasWeightCol
getWeightCol, weightColMethods inherited from interface org.apache.spark.ml.util.Identifiable
toString, uidMethods inherited from interface org.apache.spark.ml.param.Params
clear, copy, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, onParamChange, paramMap, params, set, set, set, setDefault, setDefault, shouldOwnMethods inherited from interface org.apache.spark.ml.PredictorParams
validateAndTransformSchema
-
Method Details
-
getModelType
String getModelType() -
getSmoothing
double getSmoothing() -
modelType
The model type which is a string (case-sensitive). Supported options: "multinomial", "complement", "bernoulli", "gaussian". (default = multinomial)- Returns:
- (undocumented)
-
smoothing
DoubleParam smoothing()The smoothing parameter. (default = 1.0).- Returns:
- (undocumented)
-