GithubHelp home page GithubHelp logo

deeprlexamples.jl's Introduction

DeepRLexamples

This repo provides examples of deep reinforcement learning in julia (v1.0 and above) using Knet deep learning library and OpenAI Gym. Contributions are very welcome!

Installation

Install the gym environment for python

pip install --user gym[atari]

and the julia packages Gym.jl and Knet

] add Gym Knet

You are now ready to run any of the examples in the repo. You can clone the whole repo with

git clone https://github.com/CarloLucibello/DeepRLexamples.jl

Usage

include("actor_critic_pong.jl")
main(seed=17, episodes=1000, lr=1e-2, render=true, infotime=50)

Examples

  • reinforce_cartpole.jl: reinforce algorithm with a multi-layer perceptron. CPU only.

  • actor_critic_cartpole.jl: actor critic algorithm with a multi-layer perceptron. CPU only.

  • actor_critic_pong.jl: actor critic algorithm with a convolutional neural network. Following Karphaty's blog entry, but using actor-critic instead of simple police gradient. Also, a convolutional neural network instead of a multi-layer perceptron. Runs on both CPU and GPU.

deeprlexamples.jl's People

Contributors

carlolucibello avatar etotheipluspi avatar femtocleaner[bot] avatar maximebouton avatar rejuvyesh avatar zsunberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

deeprlexamples.jl's Issues

saying hi

Hi @etotheipluspi @Evizero @denizyuret @ilkerkesen @ozanarkancan @sglyon,
I've been writing some deep reinforcement examples using julia and knet and I'm pinging you just to let you know, since i think you might be interested and also since I used some of your code (especially @ilkerkesen's).

Reinforcement learning situation in julia is kind of fragmented, and what could have been the reference package, https://github.com/JuliaML/Reinforce.jl, seems unfinished and unmaintened.

I though It would be nice to have a julia repo with neat examples and as little as possible external dependencies. This repo could be moved to the JuliaML org at a certain point.

Bye,
Carlo

some related julia repos:
https://github.com/ilkerkesen/rl
https://github.com/JuliaML/Reinforce.jl
https://github.com/ozanarkancan/ReinforcementLearning.jl
https://github.com/sisl/DeepRL.jl
https://github.com/JuliaPOMDP/POMDPs.jl
https://github.com/Evizero/ReinforcementLearning.jl
https://github.com/JuliaPOMDP/POMDPReinforce.jl

and discussions:
JuliaML/Reinforce.jl#10
JuliaML/Reinforce.jl#5
JuliaML/Reinforce.jl#2
JuliaPOMDP/POMDPs.jl#142
https://github.com/Evizero/ReinforcementLearning.jl/blob/master/docs/src/devdocs/design.md

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.