You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2015/01/21 07:22:34 UTC

[jira] [Resolved] (SPARK-5257) SparseVector indices must be non-negative

     [ https://issues.apache.org/jira/browse/SPARK-5257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen resolved SPARK-5257.
------------------------------
    Resolution: Won't Fix

[~MechCoder] I will resolve as WontFix. With ~1100 open JIRAs unfortunately I don't think you can assume that JIRAs has been reviewed by someone with authority to commit. Almost all of them are merely submitted. If in doubt, ask for comments first before beginning work.

> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org