pub struct RandomForest { /* private fields */ }Expand description
Implements an ensemble of DecisionTrees.
Implementations§
Source§impl RandomForest
impl RandomForest
Sourcepub fn build(
attribute: String,
config: TreeConfig,
data: &Dataset,
num_trees: usize,
subsample_size: usize,
) -> RandomForest
pub fn build( attribute: String, config: TreeConfig, data: &Dataset, num_trees: usize, subsample_size: usize, ) -> RandomForest
Builds an ensemble of DecisionTree by passing the data as a &Dataset, the number of trees and
the data’s subsample size.
Auto Trait Implementations§
impl Freeze for RandomForest
impl RefUnwindSafe for RandomForest
impl Send for RandomForest
impl Sync for RandomForest
impl Unpin for RandomForest
impl UnwindSafe for RandomForest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more