pub trait LeafLoss: Send + Sync {
// Required method
fn cost(&self, leaf: Leaf<'_>) -> (Cost, usize);
}Expand description
A caller’s leaf loss: (cost, class predicted). The cost of a tree is the
sum of the costs of its leaves, and a cost must be non-negative.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".