Description Usage Arguments Value Author(s)
Computes confusion matrix for a specific threshold
1 | confusion(pred, obs, threshold = 0.5)
|
pred |
the prediction |
obs |
the observation |
threshold |
A threshold up to which a prediction is class 0 or 1. A value from 0 to 1 |
Returns a confusion matrix
Georg Steinbuss
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.