This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" 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 |