Generates predictions from a trained model. Uses the standard R
predict generic for compatibility with keras3 and
the broader R ecosystem.
# S3 method for ggml_sequential_model
predict(object, x, batch_size = 32L, ...)# S3 method for ggml_functional_model
predict(object, x, batch_size = 32L, ...)
Matrix of predictions.
A trained model object.
Input data (matrix, array, or list for multi-input models).
Batch size for inference (default 32).
Additional arguments (ignored).