function that calculate the missclassification error that the node contribute
local_error(node, tree)
| node | the number of the node in the tree |
|---|---|
| tree | a tree. A data frame returned by the function |
a numeric indicating the missclassification error that the node contribute.