Skip to content

Instantly share code, notes, and snippets.

View rickhenderson's full-sized avatar

Rick Henderson rickhenderson

View GitHub Profile
@rickhenderson
rickhenderson / random-agent-FrozenLake-v0.md
Created May 5, 2016 02:16
An OpenGym experiment using Random agent and FrozenLake-v0 environment.

Ran the random agent on FrozenLake-v0 with a total of 10000 episodes since there were not enough real results with only 100 episodes.

@rickhenderson
rickhenderson / random-agent-cartpole-v0.md
Last active May 5, 2016 03:31
random-agent-cartpole-v0

Ran random_agent.py from the examples folder in the default gym installation.

@rickhenderson
rickhenderson / 1-Berzerk-v0-random.md
Last active April 30, 2016 03:26
Berzerk-v0 Random demo Writeup

Using sample() on Berzerk-v0

This experiment was created by using the sample code provided in the docs at https://gym.openai.com/docs and I simply changed the environment to Berzerk-v0 and changed the number of episodes for 100 for proper scoring.

Reproduction

  1. Follow the demo at https://gym.openai.com/docs
  2. Use env = gym.make('Berzerk-v0') for the enviroment
  3. Set the episodes to a minimum of 100.

-OR- Use the code from here:

# mandelbrot_vectorized.R
# Myles Harrison
# http://www.everydayanalytics.ca
# parameters
cols <- colorRampPalette(c("blue","yellow","red","black"))(11)
xmin = -2
xmax = 2
nx = 500
ymin = -1.5
@rickhenderson
rickhenderson / mineral_overlay.py
Last active May 6, 2016 15:43
Python script for creating a Minecraft Map to display a mineral overlay for diamonds using Minecraft Overviewer. The code contains hard coded drive locations and map names, so you would have to edit it for your own use.
# mineral_overlay.py
# Display minerals using Mineral overlay using Minecraft Overviewer
# Updated May 6, 2016
outputdir = "c:/maps/devil"
worlds["Devil Land"] = "%appdata%/.minecraft/saves/Devil Land"
# Rendermodes for lighting include: normal, night, smooth_lighting, smooth_night, nether_smooth_lighting
renders["dlday"] = {
'world': "Devil Land",