Struct stamm::randforest::RandomForestLearnParam [] [src]

pub struct RandomForestLearnParam<LearnF> where
    LearnF: TreeLearnFunctions
{ pub tree_param: TreeParameters, pub number_of_trees: usize, pub size_of_subset_per_training: usize, pub learn_function: LearnF, }

Parameter describes the way to train a random forest

Fields

parameter used for every tree

number of trees

size of a random training subset used for train one tree

TreeLearnFunction

Methods

impl<LearnF> RandomForestLearnParam<LearnF> where
    LearnF: TreeLearnFunctions + Copy
[src]

[src]

Creates a new RandomForestLearnParam. number_of_trees is the number of trees used in this random forest. Every tree will be trained using a random subset of the training data. size_of_subset_per_training is the size of this subset. learnf is the TreeLearnFunction for every tree

[src]

Trains a random forest using the ground truth data train_set.

impl<LearnF> RandomForestLearnParam<LearnF> where
    LearnF: TreeLearnFunctions + Copy + Send + Sync,
    LearnF::PredictFunction: Send + Sync,
    LearnF::Truth: Send + Sync,
    LearnF::LeafParam: Send + Sync,
    LearnF::Data: Send + Sync,
    LearnF::Param: Send + Sync
[src]

[src]

Like train_forest but use rayon to parallelize the training.

Trait Implementations

Auto Trait Implementations

impl<LearnF> Send for RandomForestLearnParam<LearnF> where
    LearnF: Send

impl<LearnF> Sync for RandomForestLearnParam<LearnF> where
    LearnF: Sync