Class Trainer

java.lang.Object
io.github.kirstenali.deepj.training.Trainer

public final class Trainer extends Object
A small, reusable training loop wrapper.

This library supports different model/data shapes (e.g. supervised Tensor->Tensor models, and causal language models that operate on token ids). Rather than duplicating full trainers, Trainer delegates a single training step to a pluggable Trainer.StepFunction.