Last active
December 22, 2022 14:57
-
-
Save TheBojda/3188064d9596d2c3691eba0372b4e972 to your computer and use it in GitHub Desktop.
PyGAD (Genetic Algorithm) reinforcement learning example with Tensorflow and OpenAI Gym (CartPole v1)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for posting! A note for people getting here after the
gym
step API has changed:0
th element ofenv.reset()
, i.e.,observation = env.reset()[0]
step
to beobservation_next, reward, done, truncated, info = env.step(action)