Derrick Burns created SPARK-5257:
------------------------------------

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


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