Regression Training #
Regression dataset training for the trainer API.
This namespace contains the dependent runner machinery behind the public regression trainer. The public API stays small: examples talk about models, datasets, and artifacts, while this file carries the shape-indexed runtime details.
Run a regression trainer directly from a public RunConfig.
Direct non-CLI execution path for the public training API. It deliberately avoids
Manual.run trainer.task run.toArgs, because that CLI-oriented path is designed for executable
commands that parse and print runtime flags themselves. Public trainer methods already hold a
RunConfig, so they can instantiate the runner directly and keep the user-facing output clean.
Instances For
Build the public trained regression result from an already-trained runner.
Both dataset and stream training end at the same place: a runner whose parameters have been updated. This operation packages that runner behind the stable public API:
predictcasts ordinaryFloattensors into the selected runtime scalar,predictBatchruns the same prediction path on a batched tensor,verifycompiles the trained model into verifier IR and runs the public IBP request.
Keeping this here prevents every training variant from re-copying the same trained-model closures.
Instances For
Shared regression training core for already-parsed public runtime settings.
Path used by trainer.train and the regression implementation handle. It mirrors the CLI-backed
trainer body, but starts from RunConfig instead of CLI strings, so public API calls do not print
or parse runtime settings twice.
Instances For
Train on an in-memory regression dataset using an explicit runtime override.
Use this when one call should temporarily override the optimizer/backend/dtype/device settings attached to the trainer.
Instances For
Train on an in-memory regression dataset using the trainer's attached runtime settings.
For ordinary training:
- put persistent optimizer/backend/dtype/device choices on the trainer value itself,
- pass per-training-call knobs such as
stepsandlogEveryhere.