Skip to content

Latest commit

 

History

History
35 lines (17 loc) · 1 KB

howto.rl.agent.001.rst

File metadata and controls

35 lines (17 loc) · 1 KB

Howto RL-AGENT-001: Run an Agent with Own Policy

.. automodule:: mlpro.rl.examples.howto_rl_agent_001_run_agent_with_own_policy_on_gym_environment



Prerequisites

Please install the following packages to run this examples properly:

Executable code

.. literalinclude:: ../../../../../../../../src/mlpro/rl/examples/howto_rl_agent_001_run_agent_with_own_policy_on_gym_environment.py
        :language: python



Results

The OpenAI Gym cartpole window appears and shows a randowm behavior while the demo run is logged on the console. Demo should terminate after 61 cycles because of the fixed random seed.

images/Cartpole.png

Cross Reference