plotPEUni | R Documentation |
This function visualizes the contribution of a specific feature to the overall
prediction score. If multiple base learner of the same features are included,
they are all added to the graphic as well as the aggregated contribution. The
difference to plotBaselearner()
is that potentially multiple base learners
that are based on feat
are aggregated and visualized while plotBaselearner()
only visualizes the contribution of one specific base learner. The function
also automatically decides whether the given feature is numeric or categorical and
chooses an appropriate technique (lines for numeric and horizontal lines for categorical).
plotPEUni(cboost, feat, npoints = 100L, individual = TRUE)
cboost |
(Compboost) |
feat |
( |
npoints |
( |
individual |
( |
ggplot
object containing the graphic.
cboost = Compboost$new(data = iris, target = "Petal.Length",
loss = LossQuadratic$new())
cboost$addComponents("Sepal.Width")
cboost$train(500L)
plotPEUni(cboost, "Sepal.Width")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.