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
# Deep Q network | |
import gym | |
import numpy as np | |
import tensorflow as tf | |
import math | |
import random | |
import nplot | |
# HYPERPARMETERS |
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
# Deep Double Q with Experience Replay | |
import gym | |
import numpy as np | |
import tensorflow as tf | |
import math | |
import random | |
# HYPERPARMETERS | |
H = 15 |
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
# Deep Q network | |
import gym | |
import numpy as np | |
import tensorflow as tf | |
import math | |
import random | |
# HYPERPARMETERS | |
H = 150 |
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
""" | |
Solve OpenAI Gym Cartpole V1 with DQN. | |
""" | |
import gym | |
import numpy as np | |
import tensorflow as tf | |
import math | |