ucla-vision / entropy-sgd Goto Github PK
View Code? Open in Web Editor NEWLua implementation of Entropy-SGD
License: Other
Lua implementation of Entropy-SGD
License: Other
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!
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?
model and criterion arguments at step method (https://github.com/ucla-vision/entropy-sgd/blob/master/python/optim.py#L19) are not used at all in the Python code. Are these really necessary?
Hi, i have submit an issue at Pytorch with entropy-sgd. Could you help us to find the reason of the much slower process? Thank you very much!
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.