KNN nearest neighbor algorithm

Use the wine data set that comes with sklearn to practice KNN. It is relatively basic. The information of the data set has been viewed in the code below, including data, labels, label names, etc. KNN can learn the types corresponding to different wine data. and classify new wine data into categories

 

 

The above code is continuous, over

Guess you like

Origin blog.csdn.net/LHgwei/article/details/127972757