Struct rustlearn::ensemble::random_forest::RandomForest [] [src]

pub struct RandomForest {
    // some fields omitted
}

Methods

impl RandomForest
[src]

fn trees(&self) -> &Vec<DecisionTree>

Return a reference to the consituent trees vector.

Trait Implementations

impl Clone for RandomForest
[src]

fn clone(&self) -> RandomForest

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Decodable for RandomForest
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<RandomForest, __D::Error>

impl Encodable for RandomForest
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl<'a> SupervisedModel<&'a Array> for RandomForest
[src]

fn fit(&mut self, X: &Array, y: &Array) -> Result<(), &'static str>

fn decision_function(&self, X: &Array) -> Result<Array, &'static str>

fn predict(&self, x: T) -> Result<Array, &'static str>

impl<'a> SupervisedModel<&'a SparseRowArray> for RandomForest
[src]

fn fit(&mut self, X: &SparseRowArray, y: &Array) -> Result<(), &'static str>

fn decision_function(&self, X: &SparseRowArray) -> Result<Array, &'static str>

fn predict(&self, x: T) -> Result<Array, &'static str>