This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. | |
Python3 port | |
""" | |
import numpy as np | |
import pickle | |
import gym | |
# hyperparameters |