Skip to content

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

Open

Description

@LouisAUTHIE

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

Activity

  1. andrewdalpino commented on Aug 19, 2024

    @andrewdalpino
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions