Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add MCC to BinaryClassificationEvaluator #3051

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JINO-ROHIT
Copy link

This PR links #3027 and adds the Matthews correlation coefficient.

Who can review?
@tomaarsen

logger.info(f"Accuracy with {name}: {acc * 100:.2f}\t(Threshold: {acc_threshold:.4f})")
logger.info(f"F1 with {name}: {f1 * 100:.2f}\t(Threshold: {f1_threshold:.4f})")
logger.info(f"Precision with {name}: {precision * 100:.2f}")
logger.info(f"Recall with {name}: {recall * 100:.2f}")
logger.info(f"Average Precision with {name}: {ap * 100:.2f}\n")
logger.info(f"Matthews Correlation with {name}: {mcc:.4f}\n")
Copy link

@reissaavedra reissaavedra Nov 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @JINO-ROHIT ,
I think you could also add this output to the docstring of the BinaryClassificationEvaluator class.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants