Struct stamm::randforest::RandomForest [] [src]

pub struct RandomForest<L, F> where
    F: TreeFunction
{ /* fields omitted */ }

A random forest to combine some decision trees. The decision trees have leafs with data from type L and use a TreeFunction from type F.

Methods

impl<L, F> RandomForest<L, F> where
    F: TreeFunction
[src]

[src]

Let every tree predict a result of the input. Returns the results in form a Vec of the leaf data.

[src]

Let every tree predict a result and combine them using a vote method.

impl<L, F> RandomForest<L, F> where
    F: TreeFunction + Send + Sync,
    <F as TreeFunction>::Param: Send + Sync,
    <F as TreeFunction>::Data: Send + Sync,
    L: Send + Sync
[src]

[src]

Like forest_predictions but use rayon to parallelize the computation.

Trait Implementations

Auto Trait Implementations

impl<L, F> Send for RandomForest<L, F> where
    F: Send,
    L: Send,
    <F as TreeFunction>::Param: Send

impl<L, F> Sync for RandomForest<L, F> where
    F: Sync,
    L: Sync,
    <F as TreeFunction>::Param: Sync