function that gives the minimum change in tree cost ==> gives alpha = min g(t), for all t in T
best_node_cost(node, tree)
node | the number of the node in the tree |
---|---|
tree | a tree. A data frame returned by the function |
a numeric that gives the minimum change in the subtree stremming from node