RBranch: Branch Pruning

View source: R/alpha.R

RBranchR Documentation

Branch Pruning

Description

This function computes the error of a branch as the sum of the errors of its child nodes.

Usage

RBranch(t, tree)

Arguments

t

list. A given EAT node.

tree

A list containing the EAT nodes.

Value

A list containing (1) the sum of the errors of the child nodes of the pruned node and (2) the total number of leaf nodes that come from it.


eat documentation built on Jan. 10, 2023, 5:13 p.m.