Skip to content

Instantly share code, notes, and snippets.

View floodsung's full-sized avatar
😀
Wonderful!

Flood Sung floodsung

😀
Wonderful!
  • moonshot.ai
View GitHub Profile
@floodsung
floodsung / DDPG
Last active September 1, 2016 13:29
The code is https://github.com/songrotek/DDPG
@floodsung
floodsung / dqn_mountaincar.py
Created June 27, 2016 11:16
DQN for MountainCar
# -------------------------------
# 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
@floodsung
floodsung / dqn.py
Last active June 14, 2024 14:09
DQN
# -------------------------------
# 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
@floodsung
floodsung / CEM.py
Created June 2, 2016 08:02
This solution is mainly from John Schulman's Deep Reinforcement Learning Lab script in Machine Learning Summer School 2016
import numpy as np
import gym
from gym.spaces import Discrete,Box
# -------------------------------------------
# Policies
# -------------------------------------------
class DeterministicDiscreteActionLinearPolicy(object):