TorchLean API

NN.Examples.Models.Common.Train

Shared Model Training Commands #

Example-side command runners for built-in runnable models.

The trainer API provides Trainer.new, trainer.train, and trained prediction handles. This file owns repository command plumbing: parse example flags, check local files, run training, and print the standard summary.

def NN.Examples.Models.TrainCommand.modelUsage (exeName : String) (dataOptions trainingOptions : Array String) (extraSections : Array String := #[]) :

Help text for model commands with caller-supplied data and training options.

Instances For

    Standard optimizer and logging flags accepted by most model commands.

    Instances For
      def NN.Examples.Models.TrainCommand.regressionCsv {σ τ : Spec.Shape} (exeName : String) (args : List String) (defaultCsv defaultLogPath : System.FilePath) (defaultSteps : := 1) (defaultLearningRate : Float := 1e-3) (banner : TorchLean.Runtime.ConfigString) (train : TorchLean.Runtime.ConfigSupport.CsvTrainFlagsIO (TorchLean.Trainer.Result σ τ)) :

      CSV-backed regression command using the public trainer API.

      Instances For

        NPY-backed classifier command using the public trainer API.

        Instances For

          NPY-backed regression command using the public trainer API.

          Instances For

            Forecast-window regression command using the public trainer API.

            Instances For