-
- Downloads
[SPARK-4362] [MLLIB] Make prediction probability available in NaiveBayesModel
Add predictProbabilities to Naive Bayes, return class probabilities. Continues https://github.com/apache/spark/pull/6761 Author: Sean Owen <sowen@cloudera.com> Closes #7376 from srowen/SPARK-4362 and squashes the following commits: 23d5a76 [Sean Owen] Fix model.labels -> model.theta 95d91fb [Sean Owen] Check that predicted probabilities sum to 1 b32d1c8 [Sean Owen] Add predictProbabilities to Naive Bayes, return class probabilities
Showing
- mllib/src/main/scala/org/apache/spark/mllib/classification/NaiveBayes.scala 60 additions, 16 deletions...la/org/apache/spark/mllib/classification/NaiveBayes.scala
- mllib/src/test/scala/org/apache/spark/mllib/classification/NaiveBayesSuite.scala 53 additions, 2 deletions...g/apache/spark/mllib/classification/NaiveBayesSuite.scala
Loading
Please register or sign in to comment