Giter Site home page Giter Site logo

cartpole-dqn's Introduction

Cartpole-DQN

This is a solution for the OPEN AI gym project cart pole using Deep Q Learning.

Concept

First we use normal Q Learning to record the past expierence. Then using random actions we train the Deep learning model made using Tensorflow and Keras. We took in 4 items in the model and gave out one command that is zero for left and one for right.

After build and compiling the model we predict the output. But it will make mistakes will such small information of the environment so we use REINFOCEMENT LEARNING meaning we correct its mistake while running the program.

We target a new value for each target meaning for every NEW reward we update the eward to something higher. So even if we get the same data or state and we predict something correct, we update the record for that to be more correct than the record before.

Use of save weights

I am not using save weights or load weights is because it is showing an error as it is a Tensorflow alpha pre release meaning that it contains a lot of errors and warnings.

Sources

This website is great USE IT! https://keon.io/deep-q-learning/

cartpole-dqn's People

Contributors

niksanjp avatar dhaji 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.