confusion {TeachNet} | R Documentation |
Computes confusion matrix for a specific threshold
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