[][src]Struct smartcore::tree::decision_tree_regressor::DecisionTreeRegressor

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

Regression Tree

Implementations

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

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

Build a decision tree regressor from the training data.

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

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

Predict regression value 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 DecisionTreeRegressor<T>[src]

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

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

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

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

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

Auto Trait Implementations

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

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

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

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

impl<T> UnwindSafe for DecisionTreeRegressor<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>,