Training Application Commands #
Compose an application-specific data parser and training callback with common CLI options.
Run a parsed training command and finish with access to runtime flags and the result.
Instances For
Run a parsed training command whose final printer only needs the trained result.
Instances For
Shared command runner for training applications with a caller-defined data parser.
Applications supply their data selection and training callback. The runner owns common flags, help output, and runtime selection.
- exeName : String
CLI subcommand name, for example
rnn. - defaultLogPath : System.FilePath
Default JSON log path used when
--logis omitted. - defaultSteps : ℕ
Default number of optimizer steps when
--stepsis omitted. - defaultLearningRate : Float
Learning rate used when
--lris omitted. - description : String
Model description used in banners.
Command-specific data flags, rendered by
--help.Parse data flags, then leave device/training flags for the shared parser.
- train : Runtime.Config → δ → OptimizerOptions → IO Unit
Run the actual training body after data, device, and training flags have been parsed.
Instances For
Usage text for training applications using the shared runner.