TrainingConfig

Experimental DSL for configuring and running training. This is kept internal/experimental to avoid early API lock-in.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun loss(block: () -> Loss)

Define the loss function.

Link copied to clipboard
fun model(block: () -> Module<T, V>)

Define the model to be trained.

Link copied to clipboard
fun optimizer(block: () -> Optimizer)

Define the optimizer.