Giter Site home page Giter Site logo

Request: save/resume training about rllab HOT 4 CLOSED

rll avatar rll commented on June 24, 2024
Request: save/resume training

from rllab.

Comments (4)

dementrock avatar dementrock commented on June 24, 2024 2

Hi @123mitnik, I've pushed an experimental implementation.

For new experiment runs (must be under "stub" mode), now the snapshot files (ending in .pkl) will store a serialized version of the Algorithm object. Then, you can resume training by running

python scripts/resume_training.py PATH_TO_PKL_FILE.pkl

from rllab.

dementrock avatar dementrock commented on June 24, 2024 1

Hi @123mitnik,

Right now the first and last are supported already. By default, if you run experiment in "stub" mode (i.e. calling stub(globals()) and then running experiment via run_experiment_lite, it should be saving pickle files under the data directory. Then, you can run python scripts/sim_policy.py PKL_FILE to replay the trained policy.

Which algorithm(s) do you need the resume training feature for? I can give a shot at implementing a primitive version.

from rllab.

123mitnik avatar 123mitnik commented on June 24, 2024

the main focus is on Trust Region Policy Optimization and second on the list is Truncated Natural Policy Gradient
my homebrew env is doing some time consuming tasks and it will take huge amounts of time to finish the training end to end

it will be great asset if you can resume the policy training .. just a lifesaver in demanding envs

I would like to Thank You for your fast replay. And to appreciate how wonderful rllab is !

from rllab.

123mitnik avatar 123mitnik commented on June 24, 2024

wow !!! that was FAST

Thank You so much !!! ... will start using it immediately

from rllab.

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.