Git Product home page Git Product logo

gym_solutions's Introduction

Solutions for Gymnasium Reinforcement Learning Library

Gymnasium library

The Gymnasium library is supported on Linux and Mac OS. If you have trouble installing on Windows (Failed building wheels for box2d-py?), check out my guide Install Gymnasium on Windows

Frozen Lake 8x8

frozen_lake_q.py
Solves the FrozenLake-v1 8x8 map with Q-Learning.
Companion Youtube video: Solve FrozenLake-v1 8x8 Tutorial

Frozen Lake 8x8 Enhanced

frozen_lake_qe.py
This file is almost identical to frozen_lake_q.py above, except this uses the frozen_lake_enhanced.py environment.

frozen_lake_enhanced.py
This is the FrozenLake-v1 environment "enhanced" to help you better understand Q-Learning. Features:

  • The Q values are overlayed on top of each cell of the map. Visually see the Q values update in realtime!
  • The map is enlarged to fill the whole screen so that it is easier to read the Q values.
  • Shortcut keys to speed up or slow down the animation.

Companion Youtube video: See Q-Learning in Realtime on FrozenLake-v1

Mountain Car

mountain_car_q.py
Solves the MountainCar-v0 environment with Q-Learning.
Companion Youtube video: Solve MountainCar-v0 Tutorial

Cart Pole

cartpole_q.py
Solves the CartPole-v1 environment with Q-Learning.
Companion Youtube video: Solve CartPole-v1 Tutorial

Humanoid

sb3.py
Solves the Humanoid-v4 environment with Stable Baselines3 Soft Actor-Critic.
Companion Youtube video: Solve Humanoid-v4 Tutorial

gym_solutions's People

Contributors

johnnycode8 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.