| ggml_predict.ggml_functional_model | R Documentation |
Runs forward pass on input data and returns prediction probabilities
(or raw output values for regression). Unlike ggml_evaluate(), this
does not require labels.
## S3 method for class 'ggml_functional_model'
ggml_predict(model, x, batch_size = 32L, ...)
ggml_predict(model, ...)
## S3 method for class 'ggml_sequential_model'
ggml_predict(model, x, batch_size = 32L, ...)
model |
A trained ggml_sequential_model |
x |
Input data (matrix or array) |
batch_size |
Batch size for inference |
... |
Additional arguments (ignored). |
Matrix of predictions with shape [N, output_units]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.