plot_history: Plot the training history of a fitted densemlp model

View source: R/plots.R

plot_historyR Documentation

Plot the training history of a fitted densemlp model

Description

A named wrapper around the plot.densemlp() method: draws the per-epoch training and validation loss curves.

Usage

plot_history(object, ...)

Arguments

object

A fitted densemlp object (single model).

...

Passed to graphics::matplot().

Value

object, invisibly.

Examples

set.seed(1)
x <- data.frame(a = rnorm(80), b = rnorm(80))
y <- x$a - 0.5 * x$b + rnorm(80, sd = 0.1)
fit <- densemlp(x, y, epochs = 40, hidden_units = c(16))
plot_history(fit)

densemlp documentation built on Nov. 3, 2026, 1:09 a.m.