Interface NaiveBayesParams
- All Superinterfaces:
- HasFeaturesCol,- HasLabelCol,- HasPredictionCol,- HasWeightCol,- Identifiable,- Params,- PredictorParams,- Serializable
- All Known Implementing Classes:
- NaiveBayes,- NaiveBayesModel
Params for Naive Bayes Classifiers.
- 
Method SummaryModifier and TypeMethodDescriptiondoubleThe model type which is a string (case-sensitive).The smoothing parameter.Methods inherited from interface org.apache.spark.ml.param.shared.HasFeaturesColfeaturesCol, getFeaturesColMethods inherited from interface org.apache.spark.ml.param.shared.HasLabelColgetLabelCol, labelColMethods inherited from interface org.apache.spark.ml.param.shared.HasPredictionColgetPredictionCol, predictionColMethods inherited from interface org.apache.spark.ml.param.shared.HasWeightColgetWeightCol, weightColMethods inherited from interface org.apache.spark.ml.util.IdentifiabletoString, uidMethods inherited from interface org.apache.spark.ml.param.Paramsclear, copy, copyValues, defaultCopy, defaultParamMap, estimateMatadataSize, 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.PredictorParamsvalidateAndTransformSchema
- 
Method Details- 
getModelTypeString getModelType()
- 
getSmoothingdouble getSmoothing()
- 
modelTypeThe model type which is a string (case-sensitive). Supported options: "multinomial", "complement", "bernoulli", "gaussian". (default = multinomial)- Returns:
- (undocumented)
 
- 
smoothingDoubleParam smoothing()The smoothing parameter. (default = 1.0).- Returns:
- (undocumented)
 
 
-