ML icon indicating copy to clipboard operation
ML copied to clipboard

Accuracy formula in the doc doesn't match the one coded

Open LouisAUTHIE opened this issue 1 year ago • 1 comments

In the Accuracy documentation, the formula presented is not the one coded in the class. https://github.com/RubixML/ML/blob/master/src/CrossValidation/Metrics/Accuracy.php

LouisAUTHIE avatar Aug 19 '24 13:08 LouisAUTHIE

Good observation. The Accuracy Metric scores the predictions differently that the accuracy value computed from the confusion matrix (in Multiclass Breakdown). Specifically the Metric only considers true positives while the Report considers both true positives and negatives. I tried to show the differences by providing the formulas in the docs but they could be wrong - I don't consider myself a mathematician. Perhaps someone with more experience can give it a look.

andrewdalpino avatar Aug 19 '24 17:08 andrewdalpino