Minibatch MLP training (batching is implicit) #
This next-step file shows the intended minibatch path in TorchLean:
- load a CSV dataset through
Data, - choose persistent runtime settings with
Trainer.RunConfig, - write the model over the minibatch shape (
batch × Vec inDim), - call
trainer.train data trainOptions, - reuse the trained handle for one follow-up prediction batch.
Run the loader tutorial instead when possible:
lake exe torchlean data_csv --steps 1 --batch 5 --dtype float --backend eager
Build this comparison module directly with:
lake build NN.Examples.Quickstart.MinibatchMlpTrain
Optional flags (tutorial-specific):
--data-dir PATH(default:NN/Examples/Data)--csv PATH(override the CSV file)--seed S--steps N--batch N
Default JSON log path used only when the user explicitly passes --log.
Instances For
def
NN.Examples.Quickstart.MinibatchMLPTrain.mkModel
{batch : ℕ}
:
TorchLean.nn.M (TorchLean.nn.Sequential (TorchLean.Shape.mat batch inDim) (TorchLean.Shape.mat batch outDim))
Batched MLP 2 -> 8 -> 1 built from the public model constructor.
Instances For
Command-line help for the minibatch MLP quickstart.