Git Product home page Git Product logo

stable_baselines's Introduction

stable-baselines-tf2

The original stable-baselines repo only supports TF1.x.
This repo makes a few modifications to make stable-baselines compatible with TF2.x while keeping the rest of the code logic intact.

Features Introduced Not Exist In Stable Baselines

L1 and L2 regularizations are introduced in PPO2. You may mimic them to apply to other agents, e.g., A2C.
In general, the network performs better with regularizations. You can tune the L1 and L2 weights based on the following quick facts:

  • L1 regularization makes the network weights sparse;
  • L2 regularization makes the network weights small.

Installation Instruction

  • Follow the instructions in the original repo to install stable-baselines;
  • Locate the original stable_baselines/ folder on your machine and remove that folder (depending on your machine and environment types, you may need to use other ways to locate this folder):
path=$(find . -type d -name "stable_baselines")
echo $path
rm -r $path
  • Download (git clone) this repo, and copy its content to where stable_baselines/ used to locate:
mkdir $path
cp -r stable-baselines-tf2/* $path
  • Check all the files are coped to $path:
ls $path
  • Delete the downloaded repo (and answer y to all questions):
rm -r stable-baselines-tf2

Notes

  • This repo does not work with tensorboard yet due to some weird compatibility issues for tf.summary in TF1.

stable_baselines's People

Contributors

jiaxindu02 avatar

Watchers

 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.