pub type Cost = f64;
The cost of a tree: the sum of the costs of its leaves. For the built-in loss, the number of misclassified instances.