Giter Club home page Giter Club logo

Comments (3)

dpfau avatar dpfau commented on July 19, 2024

The hyperparameters should not need to be changed with batch size. We use the mean of the local energies when computing the loss, so the gradient should not depend on batch size. Even so, methods like ADAM are self-tuning, and so should adapt to changes in batch size. If you are using the TensorFlow code, we would recommend using the KFAC optimizer rather than ADAM. If you only want to try ADAM, we would recommend using the JAX code (in the jax branch) as it is cleaner and easier to understand.

from ferminet.

fancunwei95 avatar fancunwei95 commented on July 19, 2024

Thank you for your suggestion. Since we are trying to test the code in pytorch and the converges in pytorch is not as quick as in the tensorflow code.

After some investigation, we think the optimizer.minimize function only combines the features ($\log|\psi|$) and grad_loss ($E_L - \mathbb{E}(E_L)$) in a dot product way and the denominator of the batch size is not included and that is why we ask the question.

from ferminet.

dpfau avatar dpfau commented on July 19, 2024

Ah yes, I think there's a slight difference between the JAX and TF implementations. But because of the way both ADAM and KFAC normalize the updates, it shouldn't matter.

from ferminet.

Related Issues (20)

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.