Skip to content

Instantly share code, notes, and snippets.

@vivekpadia70
Created February 20, 2020 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vivekpadia70/184795b627002aa5ad9bad69792218e0 to your computer and use it in GitHub Desktop.
Save vivekpadia70/184795b627002aa5ad9bad69792218e0 to your computer and use it in GitHub Desktop.
ENV_NAME = 'Breakout-ram-v0'
# Get the environment
env = gym.make(ENV_NAME)
np.random.seed(33)
env.seed(33)
# Extract the number of actions available in Breakout, i.e. left and right
nb_actions = env.action_space.n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment