Make zero_division
parameter consistent in the different metric
#29048
Labels
Milestone
zero_division
parameter consistent in the different metric
#29048
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:zero_division
parameter to theaccuracy_score
function wheny_true
andy_pred
are empty.zero_division
parameter to theclass_likelihood_ratios
and removeraise_warning
.zero_division
parameter to thecohen_kappa_score
function.zero_division
parameter to thematthew_corr_coeff
function ENH add zero_division=nan for classification metrics #23183.np.nan
inclassification_report
function.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 theprecision_recall_curve
androc_curve
as well. This might add two additional items to the list above.The text was updated successfully, but these errors were encountered: