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.
This commit is contained in:
parent
fee739f07b
commit
827ed1c067
|
@ -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})
|
||||
|
|
Loading…
Reference in a new issue