calculate_margin_for_tree: calculate_margin_for_tree() - Calculate the margin for a...

Description Usage Arguments Value

View source: R/hhcartr_calculate_margin.R

Description

This internal function is called from bagging_predict to calculate the margin on the current tree using the test set.

Usage

1
calculate_margin_for_tree(preds, actuals, count_classified_correct, total)

Arguments

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.

Value

returns the margin for the current tree.


hhcartr documentation built on July 2, 2021, 9:06 a.m.