Skip to content

Instantly share code, notes, and snippets.

View ctmakro's full-sized avatar

Qin Yongliang ctmakro

View GitHub Profile
@ctmakro
ctmakro / dqn.py
Last active September 4, 2023 10:06
DQN used to solve pendulum
from __future__ import print_function
import numpy as np
import gym
from gym.spaces import Discrete, Box
# DQN for Reinforcement Learning
# by Qin Yongliang
# 2017 01 11
def continuous_actions(env):