compile

abstract fun compile(optimizer: Optimizer, loss: Losses, metric: Metrics, callback: Callback = Callback())
abstract fun compile(optimizer: Optimizer, loss: LossFunction, metric: Metric, callback: Callback = Callback())
abstract fun compile(optimizer: Optimizer, loss: Losses, metric: Metric, callback: Callback = Callback())
abstract fun compile(optimizer: Optimizer, loss: LossFunction, metric: Metrics, callback: 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.