pub trait ERFilter_Callback: ERFilter_CallbackConst {
    // Required method
    fn as_raw_mut_ERFilter_Callback(&mut self) -> *mut c_void;

    // Provided method
    fn eval(&mut self, stat: &ERStat) -> Result<f64> { ... }
}
Expand description

Callback with the classifier is made a class.

By doing it we hide SVM, Boost etc. Developers can provide their own classifiers to the ERFilter algorithm.

Required Methods§

Provided Methods§

source

fn eval(&mut self, stat: &ERStat) -> Result<f64>

The classifier must return probability measure for the region.

Parameters
  • stat: : The region to be classified

Implementors§