[][src]Trait smartcore::api::SupervisedEstimator

pub trait SupervisedEstimator<X, Y, P> {
    pub fn fit(x: &X, y: &Y, parameters: P) -> Result<Self, Failed>
    where
        Self: Sized,
        P: Clone
; }

An estimator for supervised learning, , that provides method fit to learn from data and training values

Required methods

pub fn fit(x: &X, y: &Y, parameters: P) -> Result<Self, Failed> where
    Self: Sized,
    P: Clone
[src]

Fit a model to a training dataset, estimate model's parameters.

  • x - NxM matrix with N observations and M features in each observation.
  • y - target training values of size N.
  • parameters - hyperparameters of an algorithm
Loading content...

Implementors

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading content...