RL Command-Line Options #
TorchLean's runnable RL examples (NN/Examples/Models/RL/*) share one CLI shape:
--updates <n>: how many update iterations to run,--eval-every <n>: evaluate everynupdates,--eval-episodes <n>: number of evaluation episodes per checkpoint,--eval-max-steps <n>: max steps per evaluation episode,--log <path|off|none|false>: where to write the widget-friendly TrainLog JSON.
This module centralizes that parsing so we don't duplicate the same flag boilerplate across CartPole/Pong/GridWorld examples.
Parsed PPO command options shared by multiple runnable examples.
- updateCount : Nat
- evaluationInterval : Nat
- evaluationEpisodes : Nat
- maximumEvaluationSteps : Nat
- logDestination : Runtime.Training.LogDestination
Instances For
def
TorchLean.rl.cli.PPOOptions.parse
(exeName : String)
(arguments : List String)
(defaultLogPath : System.FilePath)
(defaultUpdateCount defaultEvaluationInterval defaultEvaluationEpisodes defaultMaximumEvaluationSteps : Nat)
:
Parse shared PPO command options.
Notes:
--log off|none|falseselectsLogDestination.disabled.- We treat
0as invalid for the update/eval counts because a “no-op” run usually indicates a CLI mistake.