CarloLucibello / DeepRLexamples.jl

Deep Reinforcement Learning examples using Julia
Other
20 stars 5 forks source link
julia knet reinforcement-learning

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