Learn R Programming

ggmlR (version 0.6.1)

ggml_predict.ggml_functional_model: Get Predictions from a Trained Model

Description

Runs forward pass on input data and returns prediction probabilities (or raw output values for regression). Unlike ggml_evaluate(), this does not require labels.

Usage

# S3 method for ggml_functional_model
ggml_predict(model, x, batch_size = 32L, ...)

ggml_predict(model, ...)

# S3 method for ggml_sequential_model ggml_predict(model, x, batch_size = 32L, ...)

Value

Matrix of predictions with shape [N, output_units]

Arguments

model

A trained ggml_sequential_model

x

Input data (matrix or array)

batch_size

Batch size for inference

...

Additional arguments (ignored).