[
https://issues.apache.org/jira/browse/SPARK-14739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Owen resolved SPARK-14739.
-------------------------------
Resolution: Fixed
Fix Version/s: 1.6.2
2.0.0
Issue resolved by pull request 12516
[https://github.com/apache/spark/pull/12516]
> Vectors.parse doesn't handle dense vectors of size 0 and sparse vectors with
> no indices
> ---------------------------------------------------------------------------------------
>
> Key: SPARK-14739
> URL: https://issues.apache.org/jira/browse/SPARK-14739
> Project: Spark
> Issue Type: Bug
> Components: MLlib, PySpark
> Affects Versions: 1.6.0, 2.0.0
> Reporter: Maciej Szymkiewicz
> Fix For: 2.0.0, 1.6.2
>
>
> DenseVector:
> {code}
> Vectors.parse(str(Vectors.dense([])))
> ## ValueError Traceback (most recent call last)
> ## ..
> ## ValueError: Unable to parse values from
> {code}
> SparseVector:
> {code}
> Vectors.parse(str(Vectors.sparse(5, [], [])))
> ## ValueError Traceback (most recent call last)
> ## ...
> ## ValueError: Unable to parse indices from .
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]