Prediction and Training #
Prediction and training methods on Trainer.Handle.
Predict 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
Predict 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.predict / trained.predictBatch methods to predict with the trained parameters.
Instances For
Train the model with the loss and runtime settings stored in trainer.
The result stores the trained parameters together with prediction and reporting methods.
Instances For
Train a regression model 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 regression models 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 cross-entropy model after the scalar type has already been selected.
Use this path from a runtime callback where Lean has already selected a concrete scalar α.