Skip to content

Instantly share code, notes, and snippets.

@kkweon
kkweon / policy_gradient.py
Created May 18, 2017 07:17
Keras Policy Gradient Example
"""
Simple policy gradient in Keras
"""
import gym
import numpy as np
from keras import layers
from keras.models import Model
from keras import backend as K