TorchLean API

NN.API.RL.Cli

RL Command-Line Options #

TorchLean's runnable RL examples (NN/Examples/Models/RL/*) share one CLI shape:

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.

Instances For
    def TorchLean.rl.cli.PPOOptions.usage (exeName : String) (artifactOptions : Array String := #[]) :

    Help text for PPO commands, with optional environment-specific artifact flags.

    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|false selects LogDestination.disabled.
      • We treat 0 as invalid for the update/eval counts because a “no-op” run usually indicates a CLI mistake.
      Instances For