Top "Nearest-neighbor" questions

Nearest neighbors are points (or other objects) in close proximity to a given location in some multi-dimensional space, e.g. a plane.

How to allow sklearn K Nearest Neighbors to take custom distance metric?

I have a custom distance metric that I need to use for KNN, K Nearest Neighbors. I tried following this, …

scikit-learn distance nearest-neighbor udf
Variation on "How to plot decision boundary of a k-nearest neighbor classifier from Elements of Statistical Learning?"

This is a question related to https://stats.stackexchange.com/questions/21572/how-to-plot-decision-boundary-of-a-k-nearest-neighbor-classifier-from-elements-o For completeness, here's the original example from that …

r visualization cluster-analysis nearest-neighbor
How to get the nearest neighbor in weka using java

I've been trying to use the Ibk nearest neighbor algorithm that goes together with the weka machine learning library. I …

java algorithm machine-learning weka nearest-neighbor
Drawing decision boundaries in R

I've got a series of modelled class labels from the knn function. I've got a data frame with basic numeric …

r machine-learning nearest-neighbor
How can I speed up nearest neighbor search with python?

I have a code, which calculates the nearest voxel (which is unassigned) to a voxel ( which is assigned). That is …

python performance parallel-processing nearest-neighbor kdtree