Learn R Programming

rtemis (version 1.4.3)

get_learning_curve: Learning curve of a fitted model

Description

The loss recorded at every step of training, as data: one row per step, with the training and validation loss where the algorithm records them.

Returns NULL for an algorithm that records no learning curve, so it is safe to call on any model.

Usage

get_learning_curve(x, ...)

Value

data.frame with columns iteration, loss_training and loss_validation, carrying attributes unit and selected; or NULL.

Arguments

x

Supervised object.

...

Additional arguments passed to methods.

Author

EDG

See Also

plot_learning, which draws it

Examples

Run this code
if (FALSE) { # interactive()
dat <- set_outcome(iris[, 1:4], "Sepal.Length")
mod <- train(
  dat[1:100, ],
  dat_validation = dat[101:150, ],
  hyperparameters = setup_LINAD(max_leaves = 12L)
)
get_learning_curve(mod)
}

Run the code above in your browser using DataLab