[jira] [Commented] (SPARK-14739) Vectors.parse doesn't handle dense vectors of size 0 and sparse vectros with no indices

2016-04-19 Thread Arash Parsa (JIRA)

[ 
https://issues.apache.org/jira/browse/SPARK-14739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15249078#comment-15249078
 ] 

Arash Parsa commented on SPARK-14739:
-

Sorry wasn't able to pull from your branch. I submitted a new PR with proper 
updates. Please let me know how it looks.

> 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([])))
> ## ValueErrorTraceback (most recent call last)
> ## .. 
> ## ValueError: Unable to parse values from
> {code}
> SparseVector:
> {code}
> Vectors.parse(str(Vectors.sparse(5, [], [])))
> ## ValueErrorTraceback (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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Commented] (SPARK-14739) Vectors.parse doesn't handle dense vectors of size 0 and sparse vectros with no indices

2016-04-19 Thread Arash Parsa (JIRA)

[ 
https://issues.apache.org/jira/browse/SPARK-14739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15249028#comment-15249028
 ] 

Arash Parsa commented on SPARK-14739:
-

[~zero323] sure I can adjust my PR (move the tests), but since I found the bug 
do you think I should be getting the fix in? 

> 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([])))
> ## ValueErrorTraceback (most recent call last)
> ## .. 
> ## ValueError: Unable to parse values from
> {code}
> SparseVector:
> {code}
> Vectors.parse(str(Vectors.sparse(5, [], [])))
> ## ValueErrorTraceback (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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Commented] (SPARK-14739) Vectors.parse doesn't handle dense vectors of size 0 and sparse vectros with no indices

2016-04-19 Thread Arash Parsa (JIRA)

[ 
https://issues.apache.org/jira/browse/SPARK-14739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15248973#comment-15248973
 ] 

Arash Parsa commented on SPARK-14739:
-

Thanks for posting the ticket on Jira, I created the PR here:
https://github.com/apache/spark/pull/12510


> 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([])))
> ## ValueErrorTraceback (most recent call last)
> ## .. 
> ## ValueError: Unable to parse values from
> {code}
> SparseVector:
> {code}
> Vectors.parse(str(Vectors.sparse(5, [], [])))
> ## ValueErrorTraceback (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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org