fbeta_score does not accept beta=0 #13224
Labels
Easy
Well-defined and straightforward way to resolve
good first issue
Easy with clear instructions to resolve
help wanted
Sprint
fbeta_score
does not acceptbeta=0
. In this case I agree that we could useprecision_score
which is the same, but is there a reason why thisfbeta_score(... beta=0)
would be forbidden ? If not I'd be happy to provide a PR. These are the lines that I would delete (plus I would provide a test):scikit-learn/sklearn/metrics/classification.py
Lines 1028 to 1029 in 7389dba
What is more, this case is even mentioned in the documentation ("beta -> 0 considers only precision, beta -> inf only recall)"), so we would reasonably expect it to work ? https://scikit-learn.org/stable/modules/generated/sklearn.metrics.fbeta_score.html
The text was updated successfully, but these errors were encountered: