This function visualizes the out-of-bag performance of an SDForest
for different complexity parameters. Can be used to choose the optimal
complexity parameter.
plotOOB(object, sqrt_scale = FALSE, loss = c("oob", "ooEnv"))
Arguments
- object
A paths object with loss_path matrix
with the out-of-bag performance for each complexity parameter.
- sqrt_scale
If TRUE the x-axis is on a square root scale.
- loss
"oob" for the out-of-bag and "ooEnv" for the
out-of-environment loss. "ooEnv" needs a forest with environments.