Github user Yunni commented on a diff in the pull request: https://github.com/apache/spark/pull/15874#discussion_r89175473 --- Diff: mllib/src/main/scala/org/apache/spark/ml/feature/LSH.scala --- @@ -155,8 +148,30 @@ private[ml] abstract class LSHModel[T <: LSHModel[T]] } /** - * Overloaded method for approxNearestNeighbors. Use Single Probing as default way to search - * nearest neighbors and "distCol" as default distCol. + * Given a large dataset and an item, approximately find at most k items which have the closest + * distance to the item. If the [[outputCol]] is missing, the method will transform the data; if + * the [[outputCol]] exists, it will use the [[outputCol]]. This allows caching of the + * transformed data when necessary. + * + * NOTE: This method is experimental and will likely change behavior in the next release. + * + * @param dataset the dataset to search for nearest neighbors of the key + * @param key Feature vector representing the item to search for + * @param numNearestNeighbors The maximum number of nearest neighbors + * @param distCol Output column for storing the distance between each result row and the key + * @return A dataset containing at most k items closest to the key. A distCol is added to show --- End diff -- Done.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org