is used to find elements in a list that are closest to a given data point.
works with numeric lists, tensors, or a list of strings.
The rule-based data syntax lets you use nearest elements to return their labels.
is to be applied repeatedly to the same numerical data, you can get significant performance gains by first generating a NearestFunction
For numerical data, by default Nearest
uses the EuclideanDistance
. For strings, EditDistance