This file contains hidden or 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
The code is https://github.com/songrotek/DDPG |
This file contains hidden or 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
# ------------------------------- | |
# DQN for CartPole in OpenAI Gym | |
# Author: Flood Sung | |
# Date: 2016.6.27 | |
# All rights reserved | |
# ------------------------------- | |
import gym | |
import tensorflow as tf | |
import numpy as np |
This file contains hidden or 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
# ------------------------------- | |
# DQN for CartPole in OpenAI Gym | |
# Author: Flood Sung | |
# Date: 2016.6.27 | |
# All rights reserved | |
# ------------------------------- | |
import gym | |
import tensorflow as tf | |
import numpy as np |
This file contains hidden or 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
import numpy as np | |
import gym | |
from gym.spaces import Discrete,Box | |
# ------------------------------------------- | |
# Policies | |
# ------------------------------------------- | |
class DeterministicDiscreteActionLinearPolicy(object): |