test_on_batch {keras3} | R Documentation |
Test the model on a single batch of samples.
Description
Test the model on a single batch of samples.
Usage
test_on_batch(object, x, y = NULL, sample_weight = NULL, ...)
Arguments
object |
Keras model object |
x |
Input data. Must be array-like. |
y |
Target data. Must be array-like. |
sample_weight |
Optional array of the same length as x, containing
weights to apply to the model's loss for each sample.
In the case of temporal data, you can pass a 2D array
with shape |
... |
for forward/backward compatability |
Value
A scalar loss value (when no metrics), or a named list of loss and metric values (if there are metrics).
See Also
Other model training:
compile.keras.src.models.model.Model()
evaluate.keras.src.models.model.Model()
predict.keras.src.models.model.Model()
predict_on_batch()
train_on_batch()
[Package keras3 version 1.1.0 Index]