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.

R Confusion Matrix sensitivity and specificity labeling

I am using R v3.3.2 and Caret 6.0.71 (i.e. latest versions) to construct a logistic regression classifier. I am using …

r r-caret confusion-matrix
Confusion matrix error when array dimensions are of size 3

This code : from pandas_ml import ConfusionMatrix y_actu = [1,2] y_pred = [1,2] cm = ConfusionMatrix(y_actu, y_pred) cm.print_stats() …

python pandas confusion-matrix
Saving output of confusionMatrix as a .csv table

I have a following code resulting in a table-like output lvs <- c("normal", "abnormal") truth <- factor(…

r csv export-to-csv confusion-matrix
Confusion Matrix with number of classified/misclassified instances on it (Python/Matplotlib)

I am plotting a confusion matrix with matplotlib with the following code: from numpy import * import matplotlib.pyplot as plt …

python matplotlib confusion-matrix
How to make sklearn.metrics.confusion_matrix() to always return TP, TN, FP, FN?

I am using sklearn.metrics.confusion_matrix(y_actual, y_predict) to extract tn, fp, fn, tp and most of …

python scikit-learn confusion-matrix
Plot A Confusion Matrix with Color and Frequency in R

I want to plot a confusion matrix, but, I don't want to just use a heatmap, because I think they …

r plot confusion-matrix