Training Application Commands #
Compose an application-specific data parser and training callback with common CLI options.
Run a parsed training command and print 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. - defaultLr : 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
Help text for a training command: its usage line, its data flags, the training flags, and the runtime flags the shared runner parses. Every training command prints this layout.
Instances For
Usage text for training applications using the shared runner.