compute_table#
- mlquantify.adjust_counting.compute_table(y, y_pred, classes)[source]#
Compute the confusion matrix table for a binary classification task.
- Parameters:
- ynp.ndarray
The true labels.
- y_prednp.ndarray
The predicted labels.
- classesnp.ndarray
The unique classes in the dataset.
- Returns:
- tuple
A tuple containing the counts of True Positives, False Positives, False Negatives, and True Negatives respectively.