-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Conversation
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") |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion!
@tomaarsen gentle ping to have a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no suggestions.
Hello! I had a quick look and made some small nitpicks, all related to the logs/docstring. Beyond that, it looks solid to me. Well done, thanks for this @JINO-ROHIT, and thanks for the review @reissaavedra I'll merge this once the tests go green.
|
This PR links #3027 and adds the Matthews correlation coefficient.
Who can review?
@tomaarsen