Skip to contents

Deprecated. If the fit has GNN training history, use the base-R S3 method with type = "history". The default gnn = FALSE fit has no training history; for that fit, use plot(fit) to show its gates or request type = "gates" explicitly.

Produces a ggplot2 validation loss training curve.

Usage

plot_history_gg(x, ...)

Arguments

x

object of class "pigauto_fit".

...

ignored.

Value

A ggplot object.

Examples

fit <- structure(
  list(history = data.frame(epoch = 1:3, val_loss = c(1, 0.7, 0.5))),
  class = "pigauto_fit"
)
plot_history_gg(fit)
Training history showing validation loss decreasing from 1.0 at epoch 1 to 0.7 at epoch 2 and 0.5 at epoch 3.