This file contains 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
## Continous cart pole using evolutionary strategy (ES) | |
## This is an implementation of the paper https://arxiv.org/pdf/1703.03864.pdf | |
## Running this script should do the trick | |
import gym | |
import numpy as np | |
from gym import wrappers | |
env = gym.make('InvertedPendulum-v1') | |
env = wrappers.Monitor(env, '/home/sid/ccp_pg', force= True) |
This file contains 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
# Continuous cart pole using policy gradients (PG) | |
# Running this script does the trick! | |
import gym | |
import numpy as np | |
from gym import wrappers | |
env = gym.make('InvertedPendulum-v1') | |
env = wrappers.Monitor(env, '/home/sid/ccp_pg', force= True) | |
This file contains 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
# Continuous cart pole using policy gradients (PG) | |
# Running this script does the trick! | |
import gym | |
import numpy as np | |
from gym import wrappers | |
env = gym.make('InvertedPendulum-v1') | |
env = wrappers.Monitor(env, '/home/sid/ccp_pg', force= True) | |
This file contains 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
# Continuous cart pole using policy gradients (PG) | |
# Running this script does the trick! | |
import gym | |
import numpy as np | |
from gym import wrappers | |
env = gym.make('InvertedPendulum-v1') | |
env = wrappers.Monitor(env, '/home/sid/ccp_pg', force= True) | |