Skip to content

Instantly share code, notes, and snippets.

View canyon289's full-sized avatar

Ravin Kumar canyon289

View GitHub Profile
@canyon289
canyon289 / dqn_cartpole_numpy.py
Created October 29, 2024 01:41 — forked from tsu-nera/dqn_cartpole_numpy.py
DQN cartpole with numpy only
import gym
import numpy as np
from collections import deque
from gym import wrappers
# Create the Cart-Pole game environment
env = gym.make('CartPole-v0')
env = wrappers.Monitor(env, '/tmp/cartpole-experiment-1')
def relu(x):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.