Giter VIP home page Giter VIP logo

entropy-sgd's People

Contributors

pratikac avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

entropy-sgd's Issues

The class of EntropySGD

In python/optim.py, at line 71, you do this:
dw = w.grad.data
Is it implement the equation of 4:
The paper's Algorith 1.
If so, does dw = w.grad.data do the forward and backward of the network, and, how does it work? Can you explain this clearly?
Thanks!

Apparent contradiction between the line 5 of Algorithm 1 in the paper and implementation

In the paper (line 5 of Algorithm 1), the dummy weights are updated as

x' <- x' - \eta' dx' + \sqrt{\eta'}\epsilon N(0,1)

But in both the lua and pytorch implementations instead of multiplying by the square root of the inner learning rate the update looks like this:

Lua:
dx:add(-g, xc-lx):add(wd,lx):add(noise/math.sqrt(0.5*lclr), eta)

Pytorch:
dw.add_(-g, wc-w.data).add_(eps/np.sqrt(0.5*llr), eta)

Is there a contradiction here?

Question about the noise term and beta1

Thanks for very nice algorithm and implementation. I have a question about the noise term, which reads as follows in the implementation:

ldfdx:add(-g, xc-lx):add(wd,lx):add(noise/math.sqrt(0.5*lclr), eta)

but according to line 5 of Algorithm 1 in paper, shouldn't it be:

ldfdx:add(-g, xc-lx):add(wd,lx):add(noise*math.sqrt(lclr), eta)

Why is noise divided by lclr and lclr is multiplied by 0.5?

Thanks a lot!

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.