Giter Club home page Giter Club logo

Comments (4)

githubharald avatar githubharald commented on June 23, 2024 1

works now, thank you 👍
I open-sourced my code for experimenting with AdaHessian where I used your optimizer implementation (of course added copyright + link to your repo).

from ada-hessian.

davda54 avatar davda54 commented on June 23, 2024

Hi, you are absolutely right. While correct accumulation could be supported, it seems that it would make the code much more complicated and it would require more memory (for storing both and ), so I'll completely remove this feature in the next version. It doesn't seem to be worth it for the default (more common) simple usage.

On the other hand, better approximation of formula 11 doesn't seem to need accumulated gradients, all samples of should be computed from the same gradient. I'll add an option to use more samples :)

from ada-hessian.

githubharald avatar githubharald commented on June 23, 2024

Yes, I also did it that way: simply pass number of samples to set_hessian(num_samples), accumulate z*(H@z) values, and finally divide by that number. But good to know that this will be in the next release :-)

from ada-hessian.

davda54 avatar davda54 commented on June 23, 2024

That's amazing, thank you for sharing the experiments!

from ada-hessian.

Related Issues (6)

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.