-
- Downloads
[SPARK-9308] [ML] ml.NaiveBayesModel support predicting class probabilities
Make NaiveBayesModel support predicting class probabilities, inherit from ProbabilisticClassificationModel. Author: Yanbo Liang <ybliang8@gmail.com> Closes #7672 from yanboliang/spark-9308 and squashes the following commits: 25e224c [Yanbo Liang] raw2probabilityInPlace should operate in-place 3ee56d6 [Yanbo Liang] change predictRaw and raw2probabilityInPlace c07e7a2 [Yanbo Liang] ml.NaiveBayesModel support predicting class probabilities
Showing
- mllib/src/main/scala/org/apache/spark/ml/classification/NaiveBayes.scala 49 additions, 16 deletions...scala/org/apache/spark/ml/classification/NaiveBayes.scala
- mllib/src/test/scala/org/apache/spark/ml/classification/NaiveBayesSuite.scala 52 additions, 2 deletions.../org/apache/spark/ml/classification/NaiveBayesSuite.scala
Loading
Please register or sign in to comment