Skip to content
Advertisement

Mismatch of manual computation of a evaluation metrics with Sklearn functions

I wanted to compare the manual computations of the precision and recall with scikit-learn functions. However, recall_score() and precision_score() of scikit-learn functions gave me different results. Not sure why! Could you please give me some advice why I am getting different results? Thanks!

My confusion matrix:

enter image description here

JavaScript
JavaScript
JavaScript
JavaScript
JavaScript
JavaScript
JavaScript
JavaScript

Advertisement

Answer

It should be (check return value’s ordering):

JavaScript

Please refer: here

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement