Skip to content

Instantly share code, notes, and snippets.

View mateuszmrozewski's full-sized avatar

Mateusz Mrozewski mateuszmrozewski

  • Sydney, Australia
View GitHub Profile
@karpathy
karpathy / pg-pong.py
Created May 30, 2016 22:50
Training a Neural Network ATARI Pong agent with Policy Gradients from raw pixels
""" Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """
import numpy as np
import cPickle as pickle
import gym
# hyperparameters
H = 200 # number of hidden layer neurons
batch_size = 10 # every how many episodes to do a param update?
learning_rate = 1e-4
gamma = 0.99 # discount factor for reward
@ravikg
ravikg / Tensorflow setup in Dell XPS Alienware 15
Created July 17, 2016 14:55
Tensorflow setup instruction with GPU support in Ubuntu 16.04 Dell XPS Alienware
http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx
Unetbootin http://unetbootin.github.io/
get ubuntu 16.04 iso and create bootable usb
in dell go to boot setup and disable secure boot and disable uefi and enable legacy
set usb 1st boot option
insert the above bootable usb and reboot laptop
install ubuntu: mouse pointer might not come in live ubuntu, use usb mouse; it will come after install
sudo apt-get update
sudo apt-get upgrade