Giter Site home page Giter Site logo

nkrgit / solving-lunar-lander-env-using-actor-critic Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 346 KB

Developed TD Actor-Critic and solved Grid-world, Open AI 'Lunar Lander-v2' and 'Cartpole-v1' environments.

Jupyter Notebook 100.00%
actor-critic cartpole-v1 grid-world gym-environments lunar-lander

solving-lunar-lander-env-using-actor-critic's Introduction

Solving Lunar-Lander-v2, CartPole-v1 Env using Actor-Critic

Goal:

  • The goal is to understand the concept of policy gradient algorithms, develop the TD actor-critic algorithm and apply it to solve OpenAI gym environments.

Part 1:

  • Implemented TD actor-critic algorithm from scratch.
    • Defined 3 separate networks actor, critic, and policy.
    • Actor is used to taking any action based on the decision given by the critic network. A policy network is used to predict probabilities to act by actor-network.

Part 2:

  • Solved Grid-world, Open AI 'Lunar Lander-v2' and 'Cartpole-v1' complex environments. (i.e. refer to report for results)

Insights:

  • The actor-critic algorithm performed well on Grid-world and converged sooner. I tried different setups for Lunar Lander with different hidden nodes and optimizer learning rates, small learning rates provided better results.

  • On cartpole the actor-critic took around 450 episodes to converge on contrary to DQN in less than 100 episodes. So, the actor-critic takes a lot of time exploring and converges slower compared to value-based approximation algorithms.

solving-lunar-lander-env-using-actor-critic's People

Contributors

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