huaxingao opened a new pull request #26858: [SPARK-30120][ML] Use BoundedPriorityQueue for small dataset in LSH approxNearestNeighbors URL: https://github.com/apache/spark/pull/26858 ### What changes were proposed in this pull request? Use BoundedPriorityQueue for small datasets in ```LSH.approxNearestNeighbors``` ### Why are the changes needed? For small datasets, we can get exact result instead of using ```approxQuantile``` ### Does this PR introduce any user-facing change? no ### How was this patch tested? Use existing unit tests
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
