Skip to content
Snippets Groups Projects
lecture_03_pendulum_random.py 429 B
Newer Older
  • Learn to ignore specific revisions
  • tuhe's avatar
    tuhe committed
    # This file may not be shared/redistributed without permission. Please read copyright notice in the git repo. If this file contains other copyright notices disregard this text.
    from irlc import Agent, train
    from irlc.ex04.model_pendulum import GymSinCosPendulumEnvironment
    
    if __name__ == "__main__":
        env = GymSinCosPendulumEnvironment(Tmax=20, render_mode='human')
        train(env, Agent(env), num_episodes=1)
        env.close()