compile

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

Configures the model for training.

NOTE: Set up isModelCompiled to True.

Parameters

optimizer

Optimizer instance.

loss

Loss function.

metric

Metric to evaluate during training.

open override fun compile(optimizer: Optimizer, loss: LossFunction, metrics: List<Metric>)

Configures the model for training.

NOTE: Set up isModelCompiled to True.

Parameters

optimizer

Optimizer instance.

loss

Loss function.

metrics

Metrics to evaluate during training.