Skip to content

Commit 041a3b3

Browse files
author
Nick Pentreath
committed
check that remaining prediction is equal
1 parent 9981fd8 commit 041a3b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mllib/src/test/scala/org/apache/spark/ml/recommendation/ALSSuite.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ class ALSSuite
581581
.select("prediction").as[Float].collect()
582582
assert(dropPredictions.length == 1)
583583
assert(!dropPredictions.head.isNaN)
584+
assert(dropPredictions.head ~== defaultPredictions.last relTol 1e-14)
584585
}
585586

586587
test("case insensitive cold start param value") {

0 commit comments

Comments
 (0)