Git Product home page Git Product logo

pytorch_seed_rl's Introduction

Build Status Documentation Status

PyTorch SEED RL

A PyTorch implementation of SEED, originally created by Google Research for TensorFlow 2.

This project has initially been designed as part of the master thesis Scaling Reinforcement Learning by Michael Janschek.

Trained model files are included in the data subfolder.

An examplatory episode of Breakout     An examplatory episode of Pong

References

Quickstart Guide

To install this tool, clone the Git repository from Github and install directly from the source using pip:

> git clone https://github.com/mjanschek/pytorch_seed_rl.git
> cd pytorch_seed_rl
> pip install .

Running an Experiment

> python -m pytorch_seed_rl.run ExperimentName

This will create a saving directory at the path ~/logs/pytorch_seed_rl/ExperimentName, where all data generated will be saved. This defaults to being log data that is written to csv files in the subdirectory /csv/. If the flag --render is used, the algorithm will create gif files of episodes that achieved a new record return. These gifs are saved in another subdirectory /gif/. Note that frames that are used for gifs are copied from the inference pipeline, this implies that all preprocessing of environment states also affect the frames used for a gif.

Evaluating a Model

> python -m pytorch_seed_rl.eval ExperimentName

This will search for the file saving directory at the path ~/logs/pytorch_seed_rl/ExperimentName/model/final_model.pt that is always created after an experiment conducted with this project reached one of its shutdown criteria.

If a model file is found, the function will run a simple interaction loop using a single actor and a single environment. A subdirectory /eval/ is created within the experiments folder. There, the subdirectories /csv/ and /gif/ are created as needed, depending on set flags. Note that the --render flag does record every episode the actor plays. Frames that are used for gifs are copied from the inference pipeline, this implies that all preprocessing of environment states also affect the frames used for a gif.

pytorch_seed_rl's People

Contributors

mjanschek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.