diff --git a/irlc/lectures/lec03/lecture_03_pendulum_random.py b/irlc/lectures/lec03/lecture_03_pendulum_random.py new file mode 100644 index 0000000000000000000000000000000000000000..58d084308b202ff91b5d7b4a332904b1f88979f6 --- /dev/null +++ b/irlc/lectures/lec03/lecture_03_pendulum_random.py @@ -0,0 +1,8 @@ +# 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()