The following results can be computed with this algorithm:
indices of nearest neighbors - the indices of the nearest neighbors for each data point, provided in order of distance (closest first).
distances to the nearest neighbors - the corresponding distances to each data point.
number of classes - the number of available class labels. Used to allocate memory for the probability prediction.
class labels - the available class labels, sorted in ascending order.
probability estimates - the probability that data points are labeled according to the available classes.
predicted labels - the predicted label for each of the queries in \(X_{test}\) in classification problems.
predicted target values - the predicted target value for each of the queries in \(X_{test}\) in regression problems.