scikit-learn 笔记之KNN(K近邻算法)
说明 在scikit-learn中提供了一个KNeighborsClassifier类来实现k近邻法分类模型,一个KNeighborsRegressor类来实k近邻法回归模型。KNeighborsClassifier分类KNeighborsClassifier是分类模型,其原型为class sklearn.neighbors.KNeighborsRegressor(n_neighbors=5, *, weights='uniform', algorithm='auto', leaf_size=