GithubHelp home page GithubHelp logo

Incorrect accuracy computation about lff HOT 4 OPEN

ktkachuk avatar ktkachuk commented on September 28, 2024
Incorrect accuracy computation

from lff.

Comments (4)

mvandenhi avatar mvandenhi commented on September 28, 2024

Hey ktkachuk,
as I understand the code, they compute the mean of the attribute-wise accuracies(without the mean), meaning they take the size of the respective groups into account. The mean attribute-wise accuracy is computed afterwards starting from line 278 - 300.
Best
Moritz

from lff.

ktkachuk avatar ktkachuk commented on September 28, 2024

Hey Moritz,
thank you for your reply. The problem is that the attribute-wise accuracies do not contain the number of samples in the respective groups. In general computing the mean of accuracies does not yield the correct accuracy of a model. E.g. if we have two classes with accuracies of 90% and 10% then the mean would be 50%. We have no information about the number of samples here. If we would have 100 samples in the 1st class and 10 samples in the 2nd class, then the real accuracy would be 83% (91/110).

from lff.

mvandenhi avatar mvandenhi commented on September 28, 2024

I checked again and yeah I think you're right. I guess this computation does only make sense under the assumption that each combination of bias & target attribute is equally likely to appear and estimating the accuracy of each combination separately before combining them using the assumption.

But I guess that's also what they are interested in, when calculating "unbiased" accuracy. As they state in the paper "We construct the unbiased evaluation set in a way that the target and bias attributes
are uncorrelated"

from lff.

zhao1402072392 avatar zhao1402072392 commented on September 28, 2024

Hi,
Could I know how to calculate the "unbiased" accuracy in the paper? I can't got the results in the paper.

from lff.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.