Python Recommended algorithm Learning 1

Source: Internet
Author: User
1. Minkowski distance

The distance from Minkowski can be summed up in the distance between Manhattan and Euclid.

where r is larger, the size of the difference between individual dimensions can have a greater effect on the whole. This is a good understanding, assuming that when r=2 a square diagonal length, is always r=3 when the cube diagonal projection, so the larger the R, a single dimension difference will have a greater impact. (So this may also be one of the reasons why many companies recommend algorithms that are not accurate) we can calculate the Minkowski distance for other users in the same dimension when recommending a new user. This kind of massive data form, with pandas processing is very convenient

Python Recommended algorithm Learning 1

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.