Giter Site home page Giter Site logo

dqn-tutorial's Introduction

Welcome to the Q-learning CogSci Tutorial!

Code implements basic q-learner with non-linear function approximation (neural network)

Some challenges: -Implement a replay buffer: Instead of updating the network based on the current state,action,reward,next-state tuple, store these in a big numpy array, and update based on randomly sampled minibatches of these tuples -Implement a target network: Setup a 2nd computational graph with the same structure as the main structure, and use TensorFlow's 'assign' command to copy the weights of the first network every 10,000 steps. Experiment with different schedules, or try having the 2nd network slowly follow the 1st! Use this target network for the target values (i.e. r+gamma*Q(sPrime,aMax))

pretty code of a completed implementation of DQN (not made by me): https://github.com/devsisters/DQN-tensorflow

Notice the encapulation of functionality across functions and files, and how everything is documented. You should do this too.

dqn-tutorial's People

Stargazers

Chan avatar Isaac Kargar avatar fun_dl avatar YuXiaoyan avatar Aida Nematzadeh avatar David Reitter avatar

Watchers

James Cloos avatar  avatar  avatar

dqn-tutorial's Issues

Request some challenges

Could you put up these two exercises you talked about at the CogSci tutorial?
The second one was to add an extra weight matrix / copy over to implement the paper's "trick"?
Thanks!

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.