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

Manoj Kumar commented on SPARK-5257:
------------------------------------

Sure. I thought it was something I could patch up quickly, hence. Next time, I 
would ask.

> SparseVector indices must be non-negative
> -----------------------------------------
>
>                 Key: SPARK-5257
>                 URL: https://issues.apache.org/jira/browse/SPARK-5257
>             Project: Spark
>          Issue Type: Documentation
>          Components: MLlib
>    Affects Versions: 1.2.0
>            Reporter: Derrick Burns
>            Priority: Minor
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> The description of SparseVector suggests only that the indices have to be 
> distinct integers.  However the code for the constructor that takes an array 
> of (index, value) tuples assumes that the indices are non-negative.
> Either the code must be changed or the description should be changed.  
> This arose when I generated indices via hashing and converting the hash 
> values to (signed) integers....



--
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

Reply via email to