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 2014/12/24 13:55:13 UTC

[jira] [Commented] (SPARK-4956) Vector Initialization error when initialize a Sparse Vector by calling Vectors.sparse(size, indices, values)

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

Sean Owen commented on SPARK-4956:
----------------------------------

Yes, I see the same behavior. Breeze doesn't check the ordering (either) but requires ordered indices. I suggest simply failing if the indices are not ordered. To start, at least.

> Vector Initialization error when initialize a Sparse Vector by calling Vectors.sparse(size, indices, values)
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-4956
>                 URL: https://issues.apache.org/jira/browse/SPARK-4956
>             Project: Spark
>          Issue Type: Bug
>          Components: MLlib
>    Affects Versions: 1.3.0
>            Reporter: liaoyuxi
>            Priority: Minor
>              Labels: patch
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> When I initialize a sparse vector by calling the Vectors.sparse(size, indices, values), the vector will be all zeros if the indices is not ordered without giving any error or warning. 
> A simple sentence to order the indicies with values can fix this bug



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