You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Derrick Burns (JIRA)" <ji...@apache.org> on 2015/01/15 02:55:34 UTC
[jira] [Created] (SPARK-5257) SparseVector indices must be
non-negative
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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org