You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maciej Szymkiewicz (JIRA)" <ji...@apache.org> on 2016/04/20 02:48:25 UTC
[jira] [Comment Edited] (SPARK-14739) Vectors.parse doesn't handle
dense vectors of size 0 and sparse vectros with no indices
[ https://issues.apache.org/jira/browse/SPARK-14739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15249053#comment-15249053 ]
Maciej Szymkiewicz edited comment on SPARK-14739 at 4/20/16 12:47 AM:
----------------------------------------------------------------------
Sure, but your latest PR still doesn't resolve problem with dead tests. Instead of copying you could actually pull changes from my repo.
was (Author: zero323):
Sure, but your latest PR still doesn't resolve problem with dead tests.
> Vectors.parse doesn't handle dense vectors of size 0 and sparse vectros 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
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org