Description Usage Arguments Value
View source: R/hhcartr_calculate_margin.R
This internal function is called from bagging_predict to calculate the margin on the current tree using the test set.
1 | calculate_margin_for_tree(preds, actuals, count_classified_correct, total)
|
preds |
Predictions on the test set. |
actuals |
The actuals classes ie. the target variables. |
count_classified_correct |
The number of correctly classified predictions. |
total |
The number of rows in the test set. |
returns the margin for the current tree.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.