This pull request resolves the issue of misaligned "Pos" and "Neg" labels in the confusion matrix printout. The previous implementation incorrectly labeled the confusion matrix elements, leading to confusion in interpreting the results. This fix ensures that the labels correctly align with the corresponding values in the confusion matrix.
If you try and rerun the return_metrics on the example AIDS Clinical Trials Notebook, you will see that the issue is fixed, and the correct labels will be provided:
Just tested on my machine on the breast cancer data. The confusion matrices and the classification report now match so this fix works. Merging with main.
Description:
This pull request resolves the issue of misaligned "Pos" and "Neg" labels in the confusion matrix printout. The previous implementation incorrectly labeled the confusion matrix elements, leading to confusion in interpreting the results. This fix ensures that the labels correctly align with the corresponding values in the confusion matrix.
Related Issue: Closes Issue #32
Previously, the constructor had the following labels:
Changes Made:
_confusion_matrix_print
function to properly align the "Pos" and "Neg" labels with the corresponding values in the confusion matrix:If you try and rerun the
return_metrics
on the example AIDS Clinical Trials Notebook, you will see that the issue is fixed, and the correct labels will be provided: