Skip to content

Instantly share code, notes, and snippets.

View evangravelle's full-sized avatar

Evan Gravelle evangravelle

View GitHub Profile
@evangravelle
evangravelle / mountaincar.py
Created July 31, 2016 05:51
MountainCar-v0 solved with SARSA-lambda using Gaussian radial basis functions
# SARSA-lambda with Gaussian radial basis functions for action-value approximation
# Implemented for the OpenAI gym mountain-car environment
# Written by Evan Gravelle
# 7/28/2016
import gym
import numpy as np
import matplotlib.pyplot as plt
# Initializations
@evangravelle
evangravelle / acrobot.py
Created August 1, 2016 05:22
Acrobot-v0 solved with SARSA-lambda using Gaussian radial basis functions
# SARSA-lambda with Gaussian radial basis functions for action-value approximation
# Implemented for the OpenAI gym acrobot environment
# Written by Evan Gravelle
# 7/31/2016
import gym
import numpy as np
import matplotlib.pyplot as plt
# Initializations