Github user jkbradley commented on a diff in the pull request: https://github.com/apache/spark/pull/4087#discussion_r26439278 --- Diff: mllib/src/main/scala/org/apache/spark/mllib/classification/NaiveBayes.scala --- @@ -166,6 +196,14 @@ class NaiveBayes private (private var lambda: Double) extends Serializable with this } + /** Set the model type. Default: Multinomial. */ + def setModelType(model: NaiveBayes.ModelType): NaiveBayes = { + this.modelType = model + this + } + + def getModelType(): NaiveBayes.ModelType = this.modelType --- End diff -- Getters normally don't have parentheses in Spark
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org