Git Product home page Git Product logo

Comments (2)

amad-person avatar amad-person commented on June 12, 2024

Hi @tr0p1x, thanks for opening the issue.

From what I can see, in fact, the error comes from the way SKLearn sets the thresholds for computing the false positive rate and the true positive rate when passing an array with float values.

Yes, you're right. sklearn is computing the threshold after seeing the data instead of fixing it at 0.5. However, this is desired behaviour for our library - because in membership inference attacks we want to find the best threshold that separates out members and non-members.

Hope this clears things up!

from ml_privacy_meter.

luigitropiano avatar luigitropiano commented on June 12, 2024

One more doubt then: isn't that conflicting with how the attack accuracy is computed (with a fixed threshold at 0.5) ?

attack_acc(probs > 0.5, target)

I think there may be situations where the tool reports a very low attack accuracy but an almost perfect ROC curve.

from ml_privacy_meter.

Related Issues (20)

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.