KNN k~ nearest Neighbor algorithm note

Source: Internet
Author: User

The k~ nearest neighbor algorithm is the simplest machine learning algorithm. It works by comparing each feature of the new data with the characteristics of the data in the sample set, and then extracting the classification label of the data with the most similar characteristics in the sample set. In general, only the first k most similar data in a sample dataset is extracted. Usually k is not greater than 20, and the most recent classification of K most similar data is chosen, the most new one.


However, the k~ neighbor algorithm must hold all the data sets, and if the training data set is large, you must use the measured storage space. In addition, because distance values must be computed for each dataset in the dataset, it can be very time-consuming to actually use them.

KNN k~ nearest Neighbor algorithm note

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.