aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mllib/src/main/scala/org/apache/spark/mllib/recommendation/ALS.scala2
-rw-r--r--project/MimaExcludes.scala4
2 files changed, 5 insertions, 1 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/mllib/recommendation/ALS.scala b/mllib/src/main/scala/org/apache/spark/mllib/recommendation/ALS.scala
index 5f84677be2..a5ffe888ca 100644
--- a/mllib/src/main/scala/org/apache/spark/mllib/recommendation/ALS.scala
+++ b/mllib/src/main/scala/org/apache/spark/mllib/recommendation/ALS.scala
@@ -615,7 +615,7 @@ class ALS private (
* Given A^T A and A^T b, find the x minimising ||Ax - b||_2, possibly subject
* to nonnegativity constraints if `nonnegative` is true.
*/
- def solveLeastSquares(ata: DoubleMatrix, atb: DoubleMatrix,
+ private def solveLeastSquares(ata: DoubleMatrix, atb: DoubleMatrix,
ws: NNLS.Workspace): Array[Double] = {
if (!nonnegative) {
Solve.solvePositive(ata, atb).data
diff --git a/project/MimaExcludes.scala b/project/MimaExcludes.scala
index 45be1db9a5..78de1f0652 100644
--- a/project/MimaExcludes.scala
+++ b/project/MimaExcludes.scala
@@ -67,6 +67,10 @@ object MimaExcludes {
ProblemFilters.exclude[MissingMethodProblem](
"org.apache.spark.mllib.linalg.Matrix.foreachActive")
) ++ Seq(
+ // SPARK-5540
+ ProblemFilters.exclude[MissingMethodProblem](
+ "org.apache.spark.mllib.recommendation.ALS.solveLeastSquares")
+ ) ++ Seq(
// SPARK-3325
ProblemFilters.exclude[MissingMethodProblem](
"org.apache.spark.streaming.api.java.JavaDStreamLike.print"),