compute_table#
- mlquantify.utils.method.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 True Positives, False Positives, False Negatives, and True Negatives.