TorchLean Public Trainer Methods #
Unified trained result and public methods on Trainer.Handle.
Evaluate one Float input through a runtime runner and return a Float output.
Instances For
Build the regression dispatch record used by Handle.train.
Instances For
Build the cross-entropy dispatch record used by Handle.train.
Instances For
Build the custom-loss dispatch record used by Handle.train.
Instances For
Evaluate one input using the trainer's current model and runtime settings.
Inference before any training call. After training, use the returned trained handle's
trained.eval / trained.evalBatch methods to evaluate the trained parameters.
Instances For
Result returned by the unified public Trainer.train method.
- regression
{σ τ : Shape}
(result : Implementation.Regression.TrainResult σ τ)
: TrainResult σ τ
Trained regression model.
- crossEntropy
{σ τ : Shape}
(result : Implementation.CrossEntropy.TrainResult σ τ)
: TrainResult σ τ
Trained one-hot cross-entropy model.
- custom
{σ τ : Shape}
(result : Implementation.Custom.TrainResult σ τ)
: TrainResult σ τ
Trained custom-loss model.
Instances For
The before/after scalar summary for this training run.
Instances For
One-line summary suitable for quickstarts and scripts.
Instances For
Print the standard before/after training summary.
Instances For
Evaluate one input using the trained model.
Instances For
Print one prediction from a unified trained handle.
Instances For
Verify an ℓ∞ input ball for a trained regression handle.
Instances For
Train a unified public trainer.
Main user-facing training method: one trainer value, one task field, and one trained result.
Instances For
Train a unified regression trainer from a Float sample stream.
Generated-data examples use this when there is no fixed Dataset to hand to trainer.train.
Instances For
Train two unified regression trainers from coupled Float streams.
GAN-style examples use this path when two regression trainers have to step together, without opening the lower-level runtime modules directly.
Instances For
Train a unified cross-entropy trainer after the scalar type has already been selected.
Advanced scalar-selected cross-entropy training. Use this path from dispatchers such as
ModelZoo.runAnyOrFloatNoCast, where the callback already has a concrete scalar α.