TorchLean API

NN.Examples.Models.RL.Views.PPOCartPole

PPO CartPole View #

This file visualizes the training curve produced by NN/Examples/Models/RL/PPOCartPole.lean (lake -R -K cuda=true exe torchlean ppo_cartpole --device cuda ...).

The executable trainer and this editor-side view live together under Examples/Models/RL.

Workflow:

  1. Run:
python3 -m pip install --user 'gymnasium>=1.0'
lake -R -K cuda=true exe torchlean ppo_cartpole --device cuda --updates 1 --eval-every 1 \
  --eval-episodes 1 --eval-max-steps 8
  1. Put the cursor on the command below in an editor. The infoview will render the saved log.

Notes:

References: