Skip to content

Instantly share code, notes, and snippets.

@blin00
blin00 / cartpole.py
Last active February 13, 2017 01:52
super rough q-learning for cartpole-v0
#!/usr/bin/python3
import numpy as np
import gym
from gym import wrappers
import random
from collections import defaultdict
def process(obs):

Keybase proof

I hereby claim:

  • I am blin00 on github.
  • I am blin00 (https://keybase.io/blin00) on keybase.
  • I have a public key whose fingerprint is 0925 7D7D 4240 E76D 312E 293B 352D 50B1 0B90 B1DD

To claim this, I am signing this object: