You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2016/02/16 14:01:32 UTC

spark git commit: Correct SparseVector.parse documentation

Repository: spark
Updated Branches:
  refs/heads/master fee739f07 -> 827ed1c06


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 <mi...@databricks.com>

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


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

Branch: refs/heads/master
Commit: 827ed1c06785692d14857bd41f1fd94a0853874a
Parents: fee739f
Author: Miles Yucht <mi...@databricks.com>
Authored: Tue Feb 16 13:01:21 2016 +0000
Committer: Sean Owen <so...@cloudera.com>
Committed: Tue Feb 16 13:01:21 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/827ed1c0/python/pyspark/mllib/linalg/__init__.py
----------------------------------------------------------------------
diff --git a/python/pyspark/mllib/linalg/__init__.py b/python/pyspark/mllib/linalg/__init__.py
index 131b855..abf00a4 100644
--- a/python/pyspark/mllib/linalg/__init__.py
+++ b/python/pyspark/mllib/linalg/__init__.py
@@ -558,7 +558,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