MultiPassOptimizer

An optimizer that performs multiple passes over training data, updating the model parameters multiple times per epoch.

Inheritors

Functions

Link copied to clipboard
abstract fun batch(cases: List<Exercise>): List<List<Exercise>>

Creates training batches out of the given cases.

Link copied to clipboard
abstract fun passAgain(): Boolean

Returns true if the optimizer should perform another pass over the training data.

Link copied to clipboard
abstract fun update(step: Int, epoch: Int, layer: Layer, weightGradients: Tensor, biasGradients: Tensor)

Updates the parameters of the model based on the outputs computed during the forward pass.