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
# Solution of Open AI gym environment "Cartpole-v0" (https://gym.openai.com/envs/CartPole-v0) using DQN and Pytorch. | |
# It is is slightly modified version of Pytorch DQN tutorial from | |
# http://pytorch.org/tutorials/intermediate/reinforcement_q_learning.html. | |
# The main difference is that it does not take rendered screen as input but it simply uses observation values from the \ | |
# environment. | |
import gym | |
from gym import wrappers | |
import random | |
import math |
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
# Solution of Open AI gym environment "Cartpole-v0" (https://gym.openai.com/envs/CartPole-v0) using DQN and Pytorch. | |
# It is is slightly modified version of Pytorch DQN tutorial from | |
# http://pytorch.org/tutorials/intermediate/reinforcement_q_learning.html. | |
# The main difference is that it does not take rendered screen as input but it simply uses observation values from the \ | |
# environment. | |
import gym | |
from gym import wrappers | |
import random | |
import math |