Using the K-nearest neighbor algorithm on dating sites

Source: Internet
Author: User

(1) Collect data: Provide text file

(2) Preparing data: Parsing text files with Python

(3) Analyzing data: Using Matpltlib to draw two-dimensional diffusion graphs

(4) Training algorithm: This step does not apply K-nearest neighbor algorithm

(5) test algorithm: Using some of the data provided by Helen as a test sample, the difference between the test sample and the non-test sample is that the test sample is the data that has been sorted, and if the forecast classification is different from the actual category, it is marked as an error

(6) Use algorithm: Generate a simple command-line program, then Helen can enter some characteristic data to determine whether the other person is the type of their liking.

Using the K-nearest neighbor algorithm on dating sites

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.