Coder Social home page Coder Social logo

geometric-sensitivity-decomposition's People

Contributors

potatotian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ag027592

geometric-sensitivity-decomposition's Issues

sigmoid and softplus in GSD

a = self.sigmoid(self.decomp_a(torch.ones(1).to(self.device))) if self.alpha is None else self.alpha
b = self.softplus(self.decomp_b(torch.ones(1).to(self.device))) if self.beta is None else self.beta

return logits/feature_norm * (feature_norm/a + b/a ), feature_norm.squeeze().detach(), (logits/feature_norm).detach(), logits.detach()

Dear,

I'd like to know why the a and b parameters need to go through the sigmoid and softplus functions.
Because when I use this for training, the loss doesn't decrease and it doesn't help calibration.
If sigmoid and softplus are not used, it can improve calibration, and the result is close to temperature scaling in in-distribution data. (I think it is correct that the result in in-distribution data is close to temperature scaling)

Thanks,
Yung-Chen

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.