View source: R/pruningScoring.R
scores | R Documentation |
This function calculates the score for each pruning of tree_alpha_list.
scores(N, Lv_notLv, x, y, fold, numStop, Tk, tree_alpha_list)
N |
Number of rows in data. |
Lv_notLv |
List with train and test sets. |
x |
Column input indexes in data. |
y |
Column output indexes in data. |
fold |
Parts in which the original data set is divided to perform Cross-Validation. |
numStop |
Minimum number of observations on a node to be split. |
Tk |
Best pruned tree. |
tree_alpha_list |
List with all the possible pruning and its associated alpha. |
List with the best pruning for each fold, the pruning with a lower score and tree_alpha_list with scores updated.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.