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.regressionCsv
{σ τ : Spec.Shape}
(exeName : String)
(args : List String)
(defaultCsv defaultLogPath : System.FilePath)
(defaultSteps : ℕ := 1)
(defaultLearningRate : Float := 1e-3)
(banner : TorchLean.Runtime.Config → String)
(train : TorchLean.Runtime.Config → Support.CsvTrainFlags → IO (TorchLean.Trainer.Result σ τ))
:
CSV-backed regression command using the public trainer API.
Instances For
def
NN.Examples.Models.TrainCommand.classificationNpy
(exeName : String)
(args : List String)
(parseFlags : List String → Except String (Support.NpyModelTrainFlags × List String))
(banner : TorchLean.Runtime.Config → String)
(train : TorchLean.Runtime.Config → Support.NpyModelTrainFlags → IO TorchLean.Trainer.Report)
:
NPY-backed classifier command using the public trainer API.
Instances For
def
NN.Examples.Models.TrainCommand.regressionNpy
{σ τ : Spec.Shape}
(exeName : String)
(args : List String)
(parseFlags : List String → Except String (Support.NpyModelTrainFlags × List String))
(banner : TorchLean.Runtime.Config → String)
(train : TorchLean.Runtime.Config → Support.NpyModelTrainFlags → IO (TorchLean.Trainer.Result σ τ))
:
NPY-backed regression command using the public trainer API.
Instances For
def
NN.Examples.Models.TrainCommand.forecastWindow
{σ τ : Spec.Shape}
(exeName : String)
(args : List String)
(parseFlags : List String → Except String (Support.ForecastWindowModelTrainFlags × List String))
(banner : TorchLean.Runtime.Config → String)
(train : TorchLean.Runtime.Config → Support.ForecastWindowModelTrainFlags → IO (TorchLean.Trainer.Result σ τ))
:
Forecast-window regression command using the public trainer API.