[
https://issues.apache.org/jira/browse/SPARK-14187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xiangrui Meng resolved SPARK-14187.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.6.2
1.5.3
2.0.0
Issue resolved by pull request 11992
[https://github.com/apache/spark/pull/11992]
> 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.6.1
> Reporter: Chenliang Xu
> Priority: Minor
> Fix For: 2.0.0, 1.5.3, 1.6.2
>
>
> {{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: [email protected]
For additional commands, e-mail: [email protected]