spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject spark git commit: Correct SparseVector.parse documentation
Date Tue, 16 Feb 2016 13:01:42 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-1.6 71f53edc0 -> d95089190


Correct SparseVector.parse documentation

There's a small typo in the SparseVector.parse docstring (which says that it returns a DenseVector
rather than a SparseVector), which seems to be incorrect.

Author: Miles Yucht <miles@databricks.com>

Closes #11213 from mgyucht/fix-sparsevector-docs.

(cherry picked from commit 827ed1c06785692d14857bd41f1fd94a0853874a)
Signed-off-by: Sean Owen <sowen@cloudera.com>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/d9508919
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/d9508919
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/d9508919

Branch: refs/heads/branch-1.6
Commit: d95089190d714e3e95579ada84ac42d463f824b5
Parents: 71f53ed
Author: Miles Yucht <miles@databricks.com>
Authored: Tue Feb 16 13:01:21 2016 +0000
Committer: Sean Owen <sowen@cloudera.com>
Committed: Tue Feb 16 13:01:37 2016 +0000

----------------------------------------------------------------------
 python/pyspark/mllib/linalg/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/d9508919/python/pyspark/mllib/linalg/__init__.py
----------------------------------------------------------------------
diff --git a/python/pyspark/mllib/linalg/__init__.py b/python/pyspark/mllib/linalg/__init__.py
index ae9ce58..c7bd109 100644
--- a/python/pyspark/mllib/linalg/__init__.py
+++ b/python/pyspark/mllib/linalg/__init__.py
@@ -556,7 +556,7 @@ class SparseVector(Vector):
     @staticmethod
     def parse(s):
         """
-        Parse string representation back into the DenseVector.
+        Parse string representation back into the SparseVector.
 
         >>> SparseVector.parse(' (4, [0,1 ],[ 4.0,5.0] )')
         SparseVector(4, {0: 4.0, 1: 5.0})


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message