Skip to main content

ErrorWrapper

Trait ErrorWrapper 

Source
pub trait ErrorWrapper: Send + Sync {
    // Required method
    fn compute(&self, data: &[usize]) -> (f64, f64);
}
Expand description

The error of a leaf.

Required Methods§

Source

fn compute(&self, data: &[usize]) -> (f64, f64)

(error, prediction) of a leaf, given its class counts or its instance ids, depending on the search’s configuration.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§