View source: R/plot_bltraces.R
plotBaselearnerTraces | R Documentation |
This function shows how the base learners evolves over the fitting process.
The default is to show how the frequency of a single base learner included
into the model evolves. Additionally, with the value
argument, vectors
(e.g. the risk) can be used to show how the base learner specific risk reduction
evolves during the fitting process.
plotBaselearnerTraces(cboost, value = 1, n_legend = 5L)
cboost |
(Compboost) |
value |
( |
n_legend |
( |
ggplot
object containing the graphic.
cboost = Compboost$new(data = iris, target = "Petal.Length",
loss = LossQuadratic$new())
cboost$addComponents("Sepal.Width")
cboost$addBaselearner("Species", "ridge", BaselearnerCategoricalRidge)
cboost$train(500L)
plotBaselearnerTraces(cboost)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.