| ggml_training_history | R Documentation |
Returns the per-epoch loss / accuracy curve recorded during
ggml_fit, in a tidy data frame. This is the standard accessor
for the loss curve; it works on a raw sequential/functional model or on a
fitted parsnip engine object (e.g. from extract_fit_engine()).
ggml_training_history(object, format = c("wide", "long"), ...)
object |
A fitted |
format |
|
... |
Unused; for extensibility. |
A data frame (tibble if tibble is installed). Wide columns:
epoch, train_loss, train_accuracy, and
val_loss / val_accuracy when a validation split was used.
Returns NULL with a warning if the model has no recorded history
(e.g. not yet fitted).
ggml_model_backend
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.