Skip to content

Commit 56194eb

Browse files
committed
add unit test for dostack ALS
1 parent 3607bdc commit 56194eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,11 @@ class ALSSuite
389389
targetRMSE = 0.3)
390390
}
391391

392+
test("rank-129 matrix with stacking factors in matrices") {
393+
val (training, test) = genExplicitTestData(numUsers = 200, numItems = 20, rank = 1)
394+
testALS(training, test, maxIter = 1, rank = 129, regParam = 0.01, targetRMSE = 0.02)
395+
}
396+
392397
test("using generic ID types") {
393398
val (ratings, _) = genImplicitTestData(numUsers = 20, numItems = 40, rank = 2, noiseStd = 0.01)
394399

0 commit comments

Comments
 (0)