This function computes the confusion matrix values (True Positives, False Negatives, True Negatives, and False Positives) based on the given metrics and the true target values.
Arguments
- metrics
A data frame with metrics obtained using
get_sensitivity_specificity()
, containing at least two columns: "Sensitivity" and "Specificity".- target
A character vector containing the true values from the target variable. It should have the same length as the predictions.