Interface NaiveBayesParams
- All Superinterfaces:
HasFeaturesCol
,HasLabelCol
,HasPredictionCol
,HasWeightCol
,Identifiable
,Params
,PredictorParams
,Serializable
- All Known Implementing Classes:
NaiveBayes
,NaiveBayesModel
Params for Naive Bayes Classifiers.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
The model type which is a string (case-sensitive).The smoothing parameter.Methods inherited from interface org.apache.spark.ml.param.shared.HasFeaturesCol
featuresCol, getFeaturesCol
Methods inherited from interface org.apache.spark.ml.param.shared.HasLabelCol
getLabelCol, labelCol
Methods inherited from interface org.apache.spark.ml.param.shared.HasPredictionCol
getPredictionCol, predictionCol
Methods inherited from interface org.apache.spark.ml.param.shared.HasWeightCol
getWeightCol, weightCol
Methods inherited from interface org.apache.spark.ml.util.Identifiable
toString, uid
Methods 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, shouldOwn
Methods 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)
-