[][src]Trait smartcore::api::Predictor

pub trait Predictor<X, Y> {
    pub fn predict(&self, x: &X) -> Result<Y, Failed>;
}

Implements method predict that estimates target value from new data

Required methods

pub fn predict(&self, x: &X) -> Result<Y, Failed>[src]

Estimate target values from new data.

  • x - NxM matrix with N observations and M features in each observation.
Loading content...

Implementors

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl<T: RealNumber, M: Matrix<T>, D: Distance<Vec<T>, T>> Predictor<M, <M as BaseMatrix<T>>::RowVector> for DBSCAN<T, D>[src]

impl<T: RealNumber, M: Matrix<T>, D: Distance<Vec<T>, T>> Predictor<M, <M as BaseMatrix<T>>::RowVector> for KNNClassifier<T, D>[src]

impl<T: RealNumber, M: Matrix<T>, D: Distance<Vec<T>, T>> Predictor<M, <M as BaseMatrix<T>>::RowVector> for KNNRegressor<T, D>[src]

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

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

Loading content...