Struct changeforest::classifier::RandomForest
source · [−]pub struct RandomForest<'a, 'b> { /* private fields */ }Implementations
sourceimpl<'a, 'b> RandomForest<'a, 'b>
impl<'a, 'b> RandomForest<'a, 'b>
pub fn new(
X: &'a ArrayView2<'b, f64>,
control: &'a Control
) -> RandomForest<'a, 'b>
Trait Implementations
sourceimpl<'a, 'b> Classifier for RandomForest<'a, 'b>
impl<'a, 'b> Classifier for RandomForest<'a, 'b>
fn n(&self) -> usize
fn predict(&self, start: usize, stop: usize, split: usize) -> Array1<f64>
fn control(&self) -> &Control
fn single_likelihood(
&self,
predictions: &Array1<f64>,
start: usize,
stop: usize,
split: usize
) -> f64
fn full_likelihood(
&self,
predictions: &Array1<f64>,
start: usize,
stop: usize,
split: usize
) -> Array2<f64>
Auto Trait Implementations
impl<'a, 'b> RefUnwindSafe for RandomForest<'a, 'b>
impl<'a, 'b> Send for RandomForest<'a, 'b>
impl<'a, 'b> Sync for RandomForest<'a, 'b>
impl<'a, 'b> Unpin for RandomForest<'a, 'b> where
'b: 'a,
impl<'a, 'b> UnwindSafe for RandomForest<'a, 'b>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more