JuliaAI / StatisticalMeasures.jl

Measures (metrics) for statistics and machine learning
MIT License
14 stars 3 forks source link

Add probability of correct classification (PCC) as an alias for balanced_accuracy #15

Closed DoktorMike closed 9 months ago

DoktorMike commented 1 year ago

Awesome package!

I was wondering if it might be prudent to add another alias to balanced_accuracy called pcc for probability of correct classification.

See the following reference: https://www.kdnuggets.com/2020/03/interpretable-performance-measure-binary-classifier.html#:~:text=Probability%20of%20correct%20classification%20(PCC)&text=PCC%20tells%20us%20how%20good,%2C%20%5B0%2C1%5D.

Not sure how common this alias is.

ablaom commented 1 year ago

Thanks for flagging this, @DoktorMike.

How about we add the alias probability_of_correct_classification for now, to at least improve discoverability?

A short alias like pcc has a higher likelihood of conflict with other names a user might want to use, and it doesn't seem to me like the alias is too common. For example, a Wikipedia-specific search of probability of correct classification returns only usages out of the present context (AFAICT) but balanced accuracy returns plenty.