Métricas Matriz Confusão

Acurácia, Precisão, Recall, F1 de uma vez.
Created by
Renato Passos, Eng. de Software
Reviewed by
Renato Passos, Eng. de Software

Last updated: Apr 18, 2026

Acurácia
0,7500
Precisão
0,8000
Recall
0,7273
F1
0,7619

Formula

Todas as métricas

About this calculator

The Confusion Matrix Metrics is an essential tool for evaluating the performance of classification models in machine learning. It calculates several important metrics, including Accuracy, Precision, Recall, and F1, from a confusion matrix. The confusion matrix is a table that summarizes the predictions in relation to the actual results, allowing a detailed analysis of the model's performance.

The formula used to calculate these metrics involves counting true positives (TP), false positives (FP), true negatives (TN), and false negatives (FN). Accuracy is the proportion of correct predictions in relation to the total number of samples. Precision is the ratio of true positives to the sum of true positives and false positives. Recall, also known as sensitivity, is the ratio of true positives to the sum of true positives and false negatives. The F1 measure is the harmonic mean of Precision and Recall.

These metrics are crucial in different scenarios, such as disease detection, text classification, and image recognition. It's essential to consider common precautions when interpreting these metrics, such as avoiding the excessive use of a single metric and considering the cost-benefit relationship of false positives and negatives.

When using the Confusion Matrix Metrics, it's essential to understand the context of the problem being addressed and choose the most relevant metrics for the specific case. Additionally, it's crucial to ensure that the input data is accurate and representative of the real problem.

Frequently asked questions

What is a confusion matrix?

A confusion matrix is a table that summarizes the predictions in relation to the actual results, allowing a detailed analysis of the model's performance.

What is the difference between Precision and Recall?

Precision is the ratio of true positives to the sum of true positives and false positives. Recall is the ratio of true positives to the sum of true positives and false negatives.

When to use the F1 measure?

The F1 measure is useful when it is necessary to balance Precision and Recall, as it is the harmonic mean of these two metrics.

Why is Accuracy not enough to evaluate a model?

Accuracy can be misleading in cases of imbalanced classes or when the costs of false positives and negatives are different.

How to interpret the results of the Confusion Matrix Metrics?

It's essential to consider the context of the problem and choose the most relevant metrics for the specific case, in addition to ensuring that the input data is accurate and representative of the real problem.

Other ML Metrics calculators