Description Usage Arguments Examples
View source: R/random_rotation.R
First sort rotations by complexity (primary criterium) and then perform a grid search over h to find the value that produces the rotation weighting with lowest OOB error.
1 2 3 4 5 6 7 | compute_tuning_parameter(
v_complex,
v_oob,
fn = weights_cut,
min_step = 1,
step_size = 1
)
|
v_complex |
vector of rotation complexities |
v_oob |
vector of rotation OOB errors |
fn |
weight function to use, currently in weights_cut, exp, rre |
min_step |
minimal value of h to test (maximum is always R, the number of rotations) |
step_size |
determines the granularity of the grid |
1 | compute_tuning_parameter(v_complex=c(10,4,5,4,6), v_oob=c(0.05, 0.03, 0.1, 0.06, 0.02), fn=weights_exp, 0.1, 0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.