[
https://issues.apache.org/jira/browse/SPARK-5257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14285139#comment-14285139
]
Manoj Kumar commented on SPARK-5257:
------------------------------------
[~mengxr] Can you please mark this as resolved. It sometimes creates confusion
for new people who are trying to contribute.
> 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: [email protected]
For additional commands, e-mail: [email protected]