predict.ggml_sequential_model: Predict with a Trained Model

View source: R/keras_api.R

predict.ggml_sequential_modelR Documentation

Predict with a Trained Model

Description

Generates predictions from a trained model. Uses the standard R predict generic for compatibility with keras3 and the broader R ecosystem.

Usage

## S3 method for class 'ggml_sequential_model'
predict(object, x, batch_size = 32L, ...)

## S3 method for class 'ggml_functional_model'
predict(object, x, batch_size = 32L, ...)

Arguments

object

A trained model object.

x

Input data (matrix, array, or list for multi-input models).

batch_size

Batch size for inference (default 32).

...

Additional arguments (ignored).

Value

Matrix of predictions.


ggmlR documentation built on July 14, 2026, 1:08 a.m.