conf_matrix: Calculating A Confusion Matrix

Description Usage Arguments Value References

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 May 18, 2019, 7 p.m.