RBranch: Branch Pruning

Description Usage Arguments Value

View source: R/alpha.R

Description

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

Usage

1
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.


MiriamEsteve/EAT documentation built on Jan. 18, 2022, 6:55 p.m.