Top "Confusion-matrix" questions

A confusion matrix is a contingency table of correct and incorrect classifications used to evaluate the performance of a classification algorithm in machine learning.

Plot confusion matrix in R using ggplot

I have two confusion matrices with calculated values as true positive (tp), false positives (fp), true negatives(tn) and false …

r ggplot2 confusion-matrix
How to retrieve overall accuracy value from confusionMatrix in R?

In R caret library, if I got a confusion matrix like this below, if there a way to retrieve the …

r r-caret confusion-matrix
confusion matrix from rpart

I can't for the life of me figure out how to compute a confusion matrix on rpart. Here is what …

r machine-learning classification decision-tree confusion-matrix
confusion matrix error "Classification metrics can't handle a mix of multilabel-indicator and multiclass targets"

I am getting a Classification metrics can't handle a mix of multilabel-indicator and multiclass targets error when I try to …

python machine-learning keras scikit-learn confusion-matrix
How compute confusion matrix for multiclass classification in Scikit?

I have a multiclass classification task. When I run my script based on the scikit example as the follows: classifier = …

python scikit-learn classification confusion-matrix
Accuracy, precision, and recall for multi-class model

How do I calculate accuracy, precision and recall for each class from a confusion matrix? I am using the embedded …

r machine-learning confusion-matrix precision-recall
Sci-kit learn how to print labels for confusion matrix?

So I'm using sci-kit learn to classify some data. I have 13 different class values/categorizes to classify the data to. …

python machine-learning scikit-learn confusion-matrix
True Positive Rate and False Positive Rate (TPR, FPR) for Multi-Class Data in python

How do you compute the true- and false- positive rates of a multi-class classification problem? Say, y_true = [1, -1, 0, 0, 1, -1, 1, 0, …

python scikit-learn confusion-matrix multiclass-classification
How to sum all the arrays inside a list of arrays?

I am working with the confusion matrix. So for each loop I have an array (confusion matrix). As I am …

python-3.x numpy multidimensional-array confusion-matrix
Confusion matrix and test accuracy for PyTorch Transfer Learning tutorial

Following the Pytorch Transfer learning tutorial, I am interested in reporting only train and test accuracy as well as confusion …

python scikit-learn pytorch confusion-matrix transfer-learning