confusion: Computes confusion matrix
Description
Computes confusion matrix for a specific threshold
Usage
confusion(pred, obs, threshold = 0.5)
Arguments
threshold
A threshold up to which a prediction is class 0 or 1. A value from 0 to 1
Value
Returns a confusion matrix