TorchLean Custom-Loss Trainer Implementation #
Custom checked supervised-loss training for the public trainer facade.
Mean loss for the custom trainer's concrete runtime module.
Instances For
Shared custom-loss training core for already-parsed public runtime settings.
This is the public facade seam that opens a ScalarModule for a custom supervised objective.
The unified Trainer.new ... { task := .custom ... } path uses the same checked
module/loss/optimizer machinery as the runtime trainer.
Instances For
Train on an in-memory dataset with a custom checked supervised loss and an explicit runtime override.
The shape matches the canned trainers: runtime choices come from RunConfig, training/logging
choices come from TrainOptions, and the returned handle owns the trained model for prediction.
Instances For
Train on an in-memory dataset using this custom trainer's attached runtime settings.