conf_matrix: Calculating A Confusion Matrix

Description Usage Arguments Value References

View source: R/conf_matrix.R

Description

Function to calculate the confusion matrix given to vectors

Usage

1
conf_matrix(pred_class, target)

Arguments

pred_class

A vector numeric binary (0, 1) of predictions

target

A numeric binary vector (0, 1)

Value

A list with: the confusion matrix, some summaries.

References

http://www2.cs.uregina.ca/~dbd/cs831/notes/confusion_matrix/confusion_matrix.html


jbkunst/riskr documentation built on June 5, 2017, 5:13 p.m.