compile

open override fun compile(optimizer: Optimizer, loss: Losses, metric: Metrics, callback: Callback)
open override fun compile(optimizer: Optimizer, loss: LossFunction, metric: Metric, callback: Callback)
open override fun compile(optimizer: Optimizer, loss: Losses, metric: Metric, callback: Callback)
open override fun compile(optimizer: Optimizer, loss: LossFunction, metric: Metrics, callback: Callback)

Configures the model for training.

NOTE: Set up isModelCompiled to True.

Parameters

optimizer

Optimizer instance.

loss

Loss function.

metric

Metric to evaluate during training.

callback

Callback to be used during training, evaluation and prediction phases.