Python machine learning: 6.6 Different performance evaluation indicators

Source: Internet
Author: User

In the previous chapters, we have been using the accuracy rate (accuracy) to evaluate the performance of the model, which is usually a good choice. In addition, there are many evaluation indicators, such as precision (precision), recall rate (recall) and F1 value (F1-score).

Confusion matrix

Before explaining the different evaluation indicators, let's start by learning a concept: The confusion matrix (confusion matrix), which shows the matrix of the learning algorithm's performance. The confusion matrix is a square matrix in which a classifier's TP (true positive), TN (True negative), FP (False positive), and FN (false negative) are recorded:

The calculation of four indicators is not complicated, but can not hand calculate of course not hand, Sklearn provides the Confusion_matrix function:

Python Machine learning Chinese catalog (http://www.aibbt.com/a/20787.html)

Reprint please specify the source, Python machine learning (http://www.aibbt.com/a/pythonmachinelearning/)

Python machine learning: 6.6 Different performance evaluation indicators

Related Article

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.