scikit-plot icon indicating copy to clipboard operation
scikit-plot copied to clipboard

Add numerical digit precision parameter

Open romanovzky opened this issue 6 years ago • 1 comments

Hi there,

I was wondering if there is a way of defining the digit numerical precision of values such as roc_auc.

To see what I mean, let me point you to sklearn API such as for Classification Report, where the parameter digits defines to what precision the values are presented.

This is specially important, for example, when one is training classifiers that are already in the top, say, +99.5% of accuracy/precision/recall/auc and we want to study differences amongst classifiers that are competing at the 0.1% level.

Namely I noticed that digit precision is not consistent throughout scikit-plot, where roc_auc is presenting three digit precision, whil precision_recall is presenting four digit precision.

As you can imagine, for scientific publication purposes it's a bit inelegant to present bound metrics with different precision.

Thanks!

romanovzky avatar May 31 '19 07:05 romanovzky

@reiinakano I have added the digits parameter to control the precision for metrics function, please see the request. Hope you would check that!

lugq1990 avatar Jul 08 '19 10:07 lugq1990