You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The maximum of F1 across thresholds is a well-studied metric and it is both robust and valid in binary and multilabel classification problems. Basically, it can be computed with precision_recall_curve, as shown below, for binary problems. For multilabel problems, I'm not sure if there is an efficient way to do this without looping thru all labels.
I had never heard of this. Is this used in other papers besides the one linked in the docstring?
I believe it's mainly used for highly imbalanced classification (as a supplement to AUPRC and various @k metrics). Specifically, in bioinformatics, imbalanced problems are just so frequent -- especially for function predictions. For example, the CAFA challenge, the major competition in protein function prediction benchmarking, uses Fmax as the key metric for comparison, see https://genomebiology.biomedcentral.com/articles/10.1186/s13059-019-1835-8. There are also various standard tasks and high-profile papers in functional genomics that uses Fmax as a standard metric.
Olivier never heard of this, nobody in 2+ years expressed interest, so it's very unlikely that it will be at the top of our priorities in the foreseeable future. I am going to close this one.
Happy to reopen in case the situation changes significantly somehow.
Activity
[-]`Fmax` score (or maximum of F1)[/-][+]`Fmax` score (or maximum of F1/Fbeta)[/+]ogrisel commentedon Apr 6, 2023
I had never heard of this. Is this used in other papers besides the one linked in the docstring?
jasperhyp commentedon Apr 6, 2023
I believe it's mainly used for highly imbalanced classification (as a supplement to AUPRC and various @k metrics). Specifically, in bioinformatics, imbalanced problems are just so frequent -- especially for function predictions. For example, the CAFA challenge, the major competition in protein function prediction benchmarking, uses Fmax as the key metric for comparison, see https://genomebiology.biomedcentral.com/articles/10.1186/s13059-019-1835-8. There are also various standard tasks and high-profile papers in functional genomics that uses Fmax as a standard metric.
See some discussions over the idea of finding the optimal threshold for precision-recall curve at:
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4442797/
https://towardsdatascience.com/optimal-threshold-for-imbalanced-classification-5884e870c293
https://machinelearningmastery.com/threshold-moving-for-imbalanced-classification/
https://stats.stackexchange.com/questions/182331/what-is-f1-optimal-threshold-how-to-calculate-it
lesteve commentedon Nov 3, 2025
Olivier never heard of this, nobody in 2+ years expressed interest, so it's very unlikely that it will be at the top of our priorities in the foreseeable future. I am going to close this one.
Happy to reopen in case the situation changes significantly somehow.