dongjoon-hyun commented on a change in pull request #25129: 
[SPARK-28159][ML][FOLLOWUP] fix typo
URL: https://github.com/apache/spark/pull/25129#discussion_r302835427
 
 

 ##########
 File path: mllib/src/main/scala/org/apache/spark/ml/clustering/LDA.scala
 ##########
 @@ -490,7 +490,7 @@ abstract class LDAModel private[ml] (
         Vectors.zeros(k)
       } else {
         val (ids: List[Int], cts: Array[Double]) = vector match {
-          case v: DenseVector => ((0 until v.size).toList, v.values)
+          case v: DenseVector => (List.range(0, v.size), v.values)
 
 Review comment:
   Please update the PR title or remove this from this PR.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to