We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0313c0c commit 76e5b0fCopy full SHA for 76e5b0f
mllib/src/test/scala/org/apache/spark/mllib/classification/NaiveBayesSuite.scala
@@ -95,10 +95,8 @@ class NaiveBayesSuite extends FunSuite with MLlibTestSparkContext {
95
assert(closeFit(math.exp(piData(i._2)), math.exp(model.pi(i._1)), 0.05))
96
}
97
for (i <- modelIndex) {
98
- val sortedData = thetaData(i._2).sorted
99
- val sortedModel = model.theta(i._1).sorted
100
- for (j <- 0 until sortedData.length) {
101
- assert(closeFit(math.exp(sortedData(j)), math.exp(sortedModel(j)), 0.05))
+ for (j <- 0 until thetaData(i._2).length) {
+ assert(closeFit(math.exp(thetaData(i._2)(j)), math.exp(model.theta(i._1)(j)), 0.05))
102
103
104
0 commit comments