gbm.perf | R Documentation |
Estimates optimal number of boosting iterations given a
GBMFit
object and optionally plots various performance
measures.
gbm.perf(
object,
plot.it = TRUE,
oobag.curve = FALSE,
overlay = TRUE,
method,
main = ""
)
object |
a |
plot.it |
an indicator of whether or not to plot the
performance measures. Setting |
oobag.curve |
indicates whether to plot the out-of-bag performance measures in a second plot. |
overlay |
if TRUE and oobag.curve=TRUE then a right y-axis is added to the training and test error plot and the estimated cumulative improvement in the loss function is plotted versus the iteration number. |
method |
indicate the method used to estimate the optimal
number of boosting iterations. |
main |
the main title for the plot. Defaults to |
gbm.perf
returns the estimated optimal number of iterations.
The method of computation depends on the method
argument.
gbmt
gbmt_performance
plot.GBMTPerformance
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.