Description Usage Arguments Value Examples
Helper function to evaluate the current split based on a given evaluation method (the default is least squares, "ls")
1 | eval_split(split_df, method = "ls")
|
split_df |
A matrix with two columns coming out of the "split" function |
method |
A string giving the evaluation method (default is "ls") –TO BE EXTENDED |
A named vector with the preferred tree node after evaluation. The value gives the outcome in the node, the name is "0" or "1" depending on which of the two nodes was selected.
1 | pref_node = eval_split(split(pred1, out), method = "ls")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.