function that calculate the missclassification error assuming that we are in the node
conditional_error(node, tree)
node | the number of the node in the tree |
---|---|
tree | a tree. A data frame returned by the function |
cond_err: an numeric indicating the missclassification error assuming that we are in the node.