ggml_predict_classes: Predict Classes from a Trained Model

View source: R/nn_model.R

ggml_predict_classesR Documentation

Predict Classes from a Trained Model

Description

Returns predicted class indices (1-based) by applying argmax to the output of ggml_predict().

Usage

ggml_predict_classes(model, x, batch_size = 32L)

Arguments

model

A trained ggml_sequential_model

x

Input data (matrix or array)

batch_size

Batch size for inference

Value

Integer vector of predicted class indices (1-based)


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