get_cp_seq.SDForest | R Documentation |
This function extracts the sequence of complexity parameters of an SDForest that result in changes of the SDForest if pruned. Only cp values that differ in the first three digits after the decimal point are returned.
## S3 method for class 'SDForest'
get_cp_seq(object, ...)
object |
an SDForest object |
... |
Further arguments passed to or from other methods. |
A sequence of complexity parameters
Markus Ulmer
regPath
stabilitySelection
get_cp_seq.SDTree
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, nTree = 2)
get_cp_seq(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.