pub struct RandomForestClassifier<TX: Number + FloatNumber + PartialOrd, TY: Number + Ord, X: Array2<TX>, Y: Array1<TY>> { /* private fields */ }
Expand description

Random Forest Classifier

Implementations

Build a forest of trees from the training set.

  • x - NxM matrix with N observations and M features in each observation.
  • y - the target class values

Predict class for x

  • x - KxM data where K is number of observations and M is number of features.

Predict OOB classes for x. x is expected to be equal to the dataset used in training.

Trait Implementations

Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Estimate target values from new data. Read more
Empty constructor, instantiate an empty estimator. Object is dropped as soon as fit() is called. used to pass around the correct fit() implementation. by calling ::fit(). mostly used to be used with model_selection::cross_validate(...) Read more
Fit a model to a training dataset, estimate model’s parameters. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.