Learn R Programming

ggmlR (version 0.6.1)

ggml_predict_classes: 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)

Value

Integer vector of predicted class indices (1-based)

Arguments

model

A trained ggml_sequential_model

x

Input data (matrix or array)

batch_size

Batch size for inference