[][src]Struct randomforest::RandomForestClassifier

pub struct RandomForestClassifier { /* fields omitted */ }

Random forest classifier.

Implementations

impl RandomForestClassifier[src]

pub fn fit<T: ClassificationCriterion>(criterion: T, table: Table<'_>) -> Self[src]

Builds a classifier model fitting the given table with the default settings.

pub fn predict(&self, features: &[f64]) -> f64[src]

Predicts the target value for the given features.

pub fn predict_individuals<'a>(
    &'a self,
    features: &'a [f64]
) -> impl 'a + Iterator<Item = f64>
[src]

Returns an iterator that iterates over a target value predicted by each decision tree.

pub fn serialize<W: Write>(&self, writer: W) -> Result<()>[src]

Writes this classifier to the given byte stream.

pub fn deserialize<R: Read>(reader: R) -> Result<Self>[src]

Reads a classifier from the given byte stream.

Trait Implementations

impl Debug for RandomForestClassifier[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,