Github user jkbradley commented on a diff in the pull request:

    https://github.com/apache/spark/pull/7672#discussion_r35732497
  
    --- Diff: 
mllib/src/test/scala/org/apache/spark/ml/classification/NaiveBayesSuite.scala 
---
    @@ -46,6 +51,44 @@ class NaiveBayesSuite extends SparkFunSuite with 
MLlibTestSparkContext {
         assert(model.theta.map(math.exp) ~== thetaData.map(math.exp) absTol 
0.05, "theta mismatch")
       }
     
    +  def expectedMultinomialProbabilities(model: NaiveBayesModel, feature: 
Vector): Vector = {
    --- End diff --
    
    Can you modify the versions of this test code which are in the spark.mllib 
test suite so that you can reuse the code, rather than making a duplicate?  
Same for expectedBernoulliProbabilities, validateProbabilities.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to