Skip to content

Commit ed00432

Browse files
committed
minor changes
1 parent d984623 commit ed00432

File tree

2 files changed

+3
-4
lines changed
  • mllib/src
    • main/scala/org/apache/spark/mllib/recommendation
    • test/scala/org/apache/spark/mllib/recommendation

2 files changed

+3
-4
lines changed

mllib/src/main/scala/org/apache/spark/mllib/recommendation/ALS.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,8 @@ class ALS private (
237237
}
238238

239239
/**
240-
* Adding x * x.t to a matrix, the same as BLAS's DSPR.
240+
* Adds alpha * x * x.t to a matrix in-place. This is the same as BLAS's DSPR.
241241
*
242-
* @param x a vector of length n
243242
* @param L the lower triangular part of the matrix packed in an array (row major)
244243
*/
245244
private def dspr(alpha: Double, x: DoubleMatrix, L: DoubleMatrix) = {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ import scala.util.Random
2323

2424
import org.scalatest.FunSuite
2525

26-
import org.jblas._
26+
import org.jblas.DoubleMatrix
2727

28-
import org.apache.spark.SparkContext._
2928
import org.apache.spark.mllib.util.LocalSparkContext
29+
import org.apache.spark.SparkContext._
3030

3131
object ALSSuite {
3232

0 commit comments

Comments
 (0)