Skip to content

Instantly share code, notes, and snippets.

Johan gustafsson

View GitHub Profile
gustafsson / pg-pong.jl
Created Feb 23, 2019 — forked from karpathy/
Training a Neural Network ATARI Pong agent with Policy Gradients from raw pixels
View pg-pong.jl
# Translation of @karpathy's from Python to Julia
# Note that it takes several days to learn a policy that wins most games.
# Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym through Gym.jl and PyCall.jl.
using Gym
using Serialization
using StatsBase: mean, std
# hyperparameters
View gist:301498
Här är ett exempel på hur man kan hantera textdokument med git i en webbläsare.
Man behöver inget konto för att skapa en gist eller redigera den.
You can’t perform that action at this time.