Precision & recall)

Source: Internet
Author: User

Precision and recall are often used in machine learning, recommendation systems, information retrieval, natural language processing, multimedia vision, and other fields) f-measure, F1-score to evaluate the accuracy of the algorithm.

I. Accuracy and recall rate (P & R)

Take text search as an example.



The black box indicates the search domain, from which we retrieve items that are highly correlated with the target text. The yellow part (A + B) in the figure indicates the items with a high priority between the domain and the target text.

A + C indicates the items retrieved by your algorithm. The meanings of A, B, and C are marked in Chinese and English.

Accuracy:


Recall rate:


In general, accuracy indicates how many items are correctly retrieved by your algorithm, and recall rate indicates how many items are retrieved accurately.

Relationship between accuracy and recall rate

Generally, we hope that the higher the accuracy and recall rate, the better, but in fact the two are in conflict in some cases. For example, if only one result is found, the result is correct and the precisin value is 1. However, because only one result is found, the recall value is very low, close to 0. Therefore, the following section describes F-measure.

II. F-Measure

F-measure is also called F-score. Its formula is:


When Beta = 1, it is F1-score:


F-measure combines precision and recall. The higher the value, the better the algorithm performance.

Precision & recall)

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.