Giter Site home page Giter Site logo

Comments (2)

tristandeleu avatar tristandeleu commented on July 21, 2024 1

The new version of the code now includes an option to have multiple gradient steps for adaptation. You can access the corresponding samples for each gradient step; following test.py

  • train_episodes is a list whose length is the number of gradient steps, and each element is also a list of length meta_batch_size containing the different episodes. For example, train_episodes[0] contains the episodes before any gradient update, train_episodes[1] the episodes after 1 gradient update (if the number of steps of adaptation is > 1), and so on.
  • valid_episodes is a list containing the episodes after all the steps of adaptation.

You can use the get_returns function to get the returns for the different episodes.

from pytorch-maml-rl.

tristandeleu avatar tristandeleu commented on July 21, 2024

Hi! Sorry for the late reply.

In Tensorboard, the entry before_update corresponds to the average return before the fast adaptation (number of gradient steps=0 in Figure 5 of the original paper). after_update corresponds to the average return after the fast adaptation (number of gradient steps=1 in Figure 5).

Also a note: at the moment, the number of gradient updates (for fast adaptation) is fixed in the code: you can only adapt with a single gradient step. In the future, I hope I could make it more flexible.

from pytorch-maml-rl.

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.