Learn R Programming

rtemis (version 1.4.3)

plot_session: Plot a Supervised object's session timeline

Description

Plots the session timeline of a Supervised or SupervisedRes object using rtemis.draw::draw_gantt().

Usage

plot_session(x, ...)

Value

htmlwidget: Widget object.

Arguments

x

rtemis::Supervised or rtemis::SupervisedRes object.

...

Additional arguments passed to rtemis.draw::draw_gantt().

Author

EDG

Details

Dispatches on ordinary and resampled supervised results.

Examples

Run this code
if (FALSE) { # interactive()
# GLM keeps the example dependency-free: rtemis fits it with stats::glm().
  mod <- train(
    mtcars[, c("wt", "hp", "mpg")],
    hyperparameters = setup_GLM(),
    verbosity = 0L
  )
  plot_session(mod)
}

Run the code above in your browser using DataLab