[][src]Struct randomforest::RandomForestClassifierOptions

pub struct RandomForestClassifierOptions { /* fields omitted */ }

Random forest options.

Implementations

impl RandomForestClassifierOptions[src]

pub fn new() -> Self[src]

Makes a RandomForestClassifierOptions instance with the default settings.

pub fn seed(&mut self, seed: u64) -> &mut Self[src]

Sets the random generator seed.

The default value is random.

pub fn trees(&mut self, trees: NonZeroUsize) -> &mut Self[src]

Sets the number of decision trees.

The default value is 100.

pub fn max_features(&mut self, max: NonZeroUsize) -> &mut Self[src]

Sets the number of maximum candidate features used to determine each decision tree node.

The default value is sqrt(the number of features).

pub fn max_samples(&mut self, max: NonZeroUsize) -> &mut Self[src]

Sets the maximum number of samples used to train each decision tree.

The default value is the number of rows in the target table.

pub fn parallel(&mut self) -> &mut Self[src]

Enables parallel executions of RandomForestClassifier::fit.

This library use rayon for parallel execution. Please see the rayon document if you want to configure the behavior (e.g., the number of worker threads).

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

Builds a classifier model fitting the given table.

Trait Implementations

impl Clone for RandomForestClassifierOptions[src]

impl Debug for RandomForestClassifierOptions[src]

impl Default for RandomForestClassifierOptions[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,