API Reference

Training Core

LMD4MLTraining.LearnerType
Learner{M, D, F, P, Q}

Object bundling together all information for training.

  • model: Architecture optimized during training.
  • data_loader: Iterable for training data.
  • loss_fn: Function calculating the loss.
  • optim: Optimizer state.
  • quantities: Metrics computed every training step.
source
LMD4MLTraining.train!Function
train!(learner, epochs, with_plots)

Train a Learner for a number of epochs, optionally with live plotting.

source
LMD4MLTraining.train_loop!Function
train_loop!(learner, epochs, channel)

Internal training loop that computes quantities and sends them to the display channel.

source
LMD4MLTraining.computeFunction
compute(q::AbstractQuantity, losses, back, grads, params)

Compute the value of quantity q using the provided training information.

source

Quantities

Dashboard and Visualization

LMD4MLTraining.build_dashboardFunction
build_dashboard(quantities) -> (fig, axes_dict)

Construct the dashboard layout for the given quantities and return the figure and axis mapping. Loss quantity is always plotted

source
LMD4MLTraining._render_loopFunction
render_loop(channel, fig, axes_dict, quantities, observables)

Consume training updates from channel and update the dashboard in real time.

source