Configure a Keras model for training
compile(object, optimizer, loss, metrics = NULL, loss_weights = NULL, sample_weight_mode = NULL, ...)
Model object to compile.
Name of optimizer or optimizer object.
Name of objective function or objective function. If the model has multiple outputs, you can use a different loss on each output by passing a dictionary or a list of objectives. The loss value that will be minimized by the model will then be the sum of all individual losses.
List of metrics to be evaluated by the model during training
and testing. Typically you will use
Optional list specifying scalar coefficients to weight
the loss contributions of different model outputs. The loss value that will
be minimized by the model will then be the weighted sum of all indvidual
losses, weighted by the
If you need to do timestep-wise sample weighting
(2D weights), set this to "temporal".
Additional named arguments passed to
Other model functions: