The train and validation error (in black and red respectively) are plotted against the iteration number. If the initial model was built with cross-validation, the cross-validation error is shown in green.
# S3 method for GBMTPerformance
plot(x, out_of_bag_curve = FALSE, overlay = TRUE, main = "", ...)
No return value, only plot generation
a GBMTPerformance
object (created by
gbmt_performance
)
indicates whether to plot the out-of-bag performance measures in a second plot.
if TRUE and out_of_bag_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.
the main title for the plot.
currently ignored
The scale of the error measurement, shown on the
left vertical axis, depends on the distribution
argument
used in the initial call to gbmt
.