API Public #
Clean public API for TorchLean model code.
User code should use the umbrella import:
import NN
open TorchLean
This module remains the subsystem surface behind those namespaces. The stable user names are:
TorchLean.nn(model/layer builders)TorchLean.optim(optimizer configs)TorchLean.Trainer(train/evaluate APIs)TorchLean.Data(datasets/loaders + CSV/NPY readers)TorchLean.LossandTorchLean.Metrics
Advanced users can still import NN.API.Public directly when they are extending TorchLean itself
or deliberately working below the NN umbrella.
The callback-heavy training namespace lives in NN.API.Public.Training. It is deliberately not
re-exported from this umbrella module: ordinary code should get training through TorchLean.Trainer,
while files that truly need callback runners should import the advanced training
module explicitly.