TrainingController

A Training Controller provides an interface to manage training of a model and exposes properties to observe the training state.

Inheritors

Properties

Link copied to clipboard
abstract val state: StateFlow<TrainingState>

Functions

Link copied to clipboard
abstract fun reset()

Stops the training process if it is currently running, and resets the training state.

Link copied to clipboard
abstract fun setEpochs(epochs: Int)

Sets the number of epochs to train the model. 0 means train indefinitely.

Link copied to clipboard
abstract fun start()

Starts the training process.

Link copied to clipboard
abstract fun stop()

Stop any ongoing training. The current epoch will be completed before stopping.

Link copied to clipboard
abstract suspend fun test(case: Exercise): Double