plot.SDForest: Plot performance of SDForest against number of trees

View source: R/plot.R

plot.SDForestR Documentation

Plot performance of SDForest against number of trees

Description

This plot helps to analyze whether enough trees were used. If the loss does not stabilize one can fit another SDForest and merge the two.

Usage

## S3 method for class 'SDForest'
plot(x, ...)

Arguments

x

Fitted object of class SDForest.

...

Further arguments passed to or from other methods.

Value

A ggplot object

Author(s)

Markus Ulmer

See Also

SDForest set.seed(1) n <- 10 X <- matrix(rnorm(n * 5), nrow = n) y <- sign(X[, 1]) * 3 + rnorm(n) model <- SDForest(x = X, y = y, Q_type = 'no_deconfounding', cp = 0.5, nTree = 500) plot(model)


SDModels documentation built on June 8, 2025, 11:17 a.m.