Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vishar0
vishar0 / simple_dqn.py
Created June 27, 2016 21:27
DQN CartPole
import gym
import random
import numpy as np
import tensorflow as tf
class DQN:
REPLAY_MEMORY_SIZE = 10000
RANDOM_ACTION_PROB = 0.5
RANDOM_ACTION_DECAY = 0.99