中文说明:在模式识别中,k-近邻邻居算法 (或简称 K-NN) 是一种用于分类和回归的非参数方法。在这两种情况下,输入包括 k 最近训练样本在特征空间中。输出取决于 k-近邻用于分类或回归。
English Description:
In pattern recognition, the k-Nearest Neighbors algorithm (or k-NN for short) is a non-parametric method used for classification and regression. In both cases, the input consists of the k closest training examples in the feature space. The output depends on whether k-NN is used for classification or regression.