Github user loveconan1988 commented on a diff in the pull request: https://github.com/apache/spark/pull/1878#discussion_r16153416 --- Diff: python/pyspark/mllib/linalg.py --- @@ -160,6 +161,15 @@ def squared_distance(self, other): j += 1 return result + def toDense(self): --- End diff -- ------------------ åå§é®ä»¶ ------------------ å件人: "Xiangrui Meng";<notificati...@github.com>; åéæ¶é´: 2014å¹´8æ12æ¥(ææäº) ä¸å12:08 æ¶ä»¶äºº: "apache/spark"<sp...@noreply.github.com>; 主é¢: Re: [spark] [SPARK-2850] [mllib] MLlib stats examples + small fixes(#1878) In python/pyspark/mllib/linalg.py: > @@ -160,6 +161,15 @@ def squared_distance(self, other): > j += 1 > return result > > + def toDense(self): toDense -> toArray (compatible with Scala API)? â Reply to this email directly or view it on GitHub.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org