Coder Social home page Coder Social logo

teddykoker / learning-to-learn-jax Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 1.0 154 KB

JAX implementation of Learning to learn by gradient descent by gradient descent

Home Page: https://teddykoker.com/2022/04/learning-to-learn-jax/

Python 100.00%

learning-to-learn-jax's People

Contributors

teddykoker 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

Watchers

 avatar  avatar  avatar

Forkers

nehat005

learning-to-learn-jax's Issues

Status of Saved Meta Optimizer

Thanks a lot for the elegant and clean reimplementation of the paper.

I noticed that the meta parameters saved are only from the first model in each episode. Therefore not much learning is tested. The reasoning is as follows:

  1. meta_loss is initialized to zero in each episode, here. meta_loss = 0.
  2. In each outer loop step, meta_loss accumulates the loss, here. meta_loss += loss.
    Based on that, the least and best meta_loss is only at the first iteration of the outer loop, or when the meta parameters are not updated.
  3. The meta parameters are saved when meta_loss < best_loss, here.

A quick fix could be to change the comparison from ( if meta_loss < best_loss) to ( if loss < best_loss).

I hope I didn't miss something. Thank you again for sharing your elegant code.

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.