Single gradient update or model evaluation over one batch of samples.
train_on_batch(object, x, y, class_weight = NULL, sample_weight = NULL) test_on_batch(object, x, y, sample_weight = NULL)
Keras model object
input data, as an array or list of arrays (if the model has multiple inputs).
labels, as an array.
named list mapping classes to a weight value, used for scaling the loss function (during training only).
sample weights, as an array.
Scalar training or test loss (if the model has no metrics) or list of scalars
(if the model computes other metrics). The property
will give you the display labels for the scalar outputs.
Other model functions: