Description Usage Arguments Details Value
Prune a bs_tree object for different values of tuning parameter gamma
1 | PruneTreeGamma(x, gamma = seq(0, 3, length.out = 50))
|
x |
An object of class bs_tree |
gamma |
A numeric vector with values for gamma for which the tree shall be pruned. |
This functions adds the gamma penalty to each split in the tree. If the penalized loss is higher than the loss of the base segment the node will be pruned from the tree. The tree will be pruned for the specified path of gamma and for each gamma value a set of changepoints is returned.
A list of lists with changepoints corresponding to a value of gamma each.
Gamma values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.