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

Xiangrui Meng updated SPARK-14187:
----------------------------------
    Affects Version/s: 2.0.0
                       1.2.2
                       1.3.1
                       1.4.1
                       1.5.2

> Incorrect use of binarysearch in SparseMatrix
> ---------------------------------------------
>
>                 Key: SPARK-14187
>                 URL: https://issues.apache.org/jira/browse/SPARK-14187
>             Project: Spark
>          Issue Type: Bug
>          Components: MLlib
>    Affects Versions: 1.2.2, 1.3.1, 1.4.1, 1.5.2, 1.6.1, 2.0.0
>            Reporter: Chenliang Xu
>            Priority: Minor
>             Fix For: 1.5.3, 1.6.2, 2.0.0
>
>
> {{SparseMatrix}} use binarySearch to find {{index}}. 
> {quote}
> binarySearch returns index of the search key, if it is contained in the array 
> within the specified range; otherwise, (-(insertion point) - 1).
> {quote}
> On the other hand, {{update}} method only compare the returned index with -1 
> to decide whether it is found or not.



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