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

Create an F1 Score Metric for Binary Classification #19

Open
mfrasco opened this issue Apr 18, 2018 · 1 comment
Open

Create an F1 Score Metric for Binary Classification #19

mfrasco opened this issue Apr 18, 2018 · 1 comment

Comments

@mfrasco
Copy link
Owner

mfrasco commented Apr 18, 2018

Currently, the function f1 is used for information retrieval problems. However, I really want a function called f1_score that can be used for binary classification problems. This function should take two arguments, predicted and actual and compute the f1 score by calculating the point-wise precision and recall of the predictions.

@adam-m-mcelhinney
Copy link

@mfrasco, I would propose an fbeta_score function that accepts an optional beta arugment with a default set to one.

http://scikit-learn.org/stable/modules/generated/sklearn.metrics.fbeta_score.html
https://en.wikipedia.org/wiki/F1_score

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

No branches or pull requests

2 participants