ymalitsky / adaptive_gd Goto Github PK
View Code? Open in Web Editor NEWAdaptive gradient descent without descent
License: MIT License
Adaptive gradient descent without descent
License: MIT License
Hello, excuse me for asking out of the blue.
I am very interested in your paper and am now thinking about its development.
I have a question about the code in this repository, which I think is an error.
In adaptive_GD/pytorch/optimizers.py,
Line 39, "grad_dif_norm += (d_p - prev_d_p).norm().item() ** 2" is not be, "grad_dif_norm += (d_p - prev_d_p).pow(2).sum().item()"?
and also Line 40, "grad_dif_norm += (p.data - prev_p.data).norm().item() ** 2" is not be, "param_dif_norm += (p.data - prev_p.data).pow(2).sum().item()"?
This is because in torch.Tensor.norm(), all the elements of the tensor are squared, added together, and the square root is taken.
In the original code, the Euclidean norm of the difference of each layer parameter (or gradient) is found, the result is squared, the squared Euclidean norm of all layers is added, and the square root of the result is taken.
This is not the same as the formula in the paper, is it?
Lastly, I am sorry if my English is not good enough to convey my intentions well.
I hope you understand that I am not malicious in my questions and that I am asking them out of simple doubt and interest in your research.
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.