Open
Description
This is an issue to report the step to actually take over the work of @marctorsoc in #23183 and split the PR into smaller one to facilitate the review process.
The intend is to make the zero_division
parameter consistent across different metrics in scikit-learn. In this regards, we have the following TODO list:
- Introduce the
zero_division
parameter to theaccuracy_score
function wheny_true
andy_pred
are empty. - Introduce the
zero_division
parameter to theclass_likelihood_ratios
and removeraise_warning
. - Introduce the
zero_division
parameter to thecohen_kappa_score
function - Introduce the
zero_division
parameter to thematthew_corr_coeff
function -
Open a PR to make sure the empty input lead tonp.nan
inclassification_report
function.classification_report
should raise an error instead: see Makezero_division
parameter consistent in the different metric #29048 (comment)
All those items have been addressed in #23183 and can be extracted in individual PRs. The changelog presenting the changes should acknowledge @marctorsoc.
In addition, we should investigate #27047 and check if we should add the zero_division
parameter to the precision_recall_curve
and roc_curve
as well. This might add two additional items to the list above.
Metadata
Metadata
Assignees
Type
Projects
Status
Todo