[][src]Struct smartcore::ensemble::random_forest_classifier::RandomForestClassifier

pub struct RandomForestClassifier<T: RealNumber> { /* fields omitted */ }

Random Forest Classifier

Implementations

impl<T: RealNumber> RandomForestClassifier<T>[src]

pub fn fit<M: Matrix<T>>(
    x: &M,
    y: &M::RowVector,
    parameters: RandomForestClassifierParameters
) -> Result<RandomForestClassifier<T>, Failed>
[src]

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

pub fn predict<M: Matrix<T>>(&self, x: &M) -> Result<M::RowVector, Failed>[src]

Predict class for x

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

Trait Implementations

impl<T: Debug + RealNumber> Debug for RandomForestClassifier<T>[src]

impl<'de, T: RealNumber> Deserialize<'de> for RandomForestClassifier<T> where
    T: Deserialize<'de>, 
[src]

impl<T: RealNumber> PartialEq<RandomForestClassifier<T>> for RandomForestClassifier<T>[src]

impl<T: RealNumber, M: Matrix<T>> Predictor<M, <M as BaseMatrix<T>>::RowVector> for RandomForestClassifier<T>[src]

impl<T: RealNumber> Serialize for RandomForestClassifier<T> where
    T: Serialize
[src]

impl<T: RealNumber, M: Matrix<T>> SupervisedEstimator<M, <M as BaseMatrix<T>>::RowVector, RandomForestClassifierParameters> for RandomForestClassifier<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for RandomForestClassifier<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for RandomForestClassifier<T> where
    T: Send
[src]

impl<T> Sync for RandomForestClassifier<T> where
    T: Sync
[src]

impl<T> Unpin for RandomForestClassifier<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for RandomForestClassifier<T> where
    T: UnwindSafe
[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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>,