[−][src]Trait smartcore::api::SupervisedEstimator
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]
Self: Sized,
P: Clone,
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
Implementors
impl<T: RealNumber, M: Matrix<T>> SupervisedEstimator<M, <M as BaseMatrix<T>>::RowVector, RandomForestClassifierParameters> for RandomForestClassifier<T>
[src]
pub fn fit(
x: &M,
y: &M::RowVector,
parameters: RandomForestClassifierParameters
) -> Result<Self, Failed>
[src]
x: &M,
y: &M::RowVector,
parameters: RandomForestClassifierParameters
) -> Result<Self, Failed>
impl<T: RealNumber, M: Matrix<T>> SupervisedEstimator<M, <M as BaseMatrix<T>>::RowVector, RandomForestRegressorParameters> for RandomForestRegressor<T>
[src]
pub fn fit(
x: &M,
y: &M::RowVector,
parameters: RandomForestRegressorParameters
) -> Result<Self, Failed>
[src]
x: &M,
y: &M::RowVector,
parameters: RandomForestRegressorParameters
) -> Result<Self, Failed>
impl<T: RealNumber, M: Matrix<T>> SupervisedEstimator<M, <M as BaseMatrix<T>>::RowVector, ElasticNetParameters<T>> for ElasticNet<T, M>
[src]
pub fn fit(
x: &M,
y: &M::RowVector,
parameters: ElasticNetParameters<T>
) -> Result<Self, Failed>
[src]
x: &M,
y: &M::RowVector,
parameters: ElasticNetParameters<T>
) -> Result<Self, Failed>
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]
pub fn fit(
x: &M,
y: &M::RowVector,
parameters: LinearRegressionParameters
) -> Result<Self, Failed>
[src]
x: &M,
y: &M::RowVector,
parameters: LinearRegressionParameters
) -> Result<Self, Failed>
impl<T: RealNumber, M: Matrix<T>> SupervisedEstimator<M, <M as BaseMatrix<T>>::RowVector, LogisticRegressionParameters> for LogisticRegression<T, M>
[src]
pub fn fit(
x: &M,
y: &M::RowVector,
parameters: LogisticRegressionParameters
) -> Result<Self, Failed>
[src]
x: &M,
y: &M::RowVector,
parameters: LogisticRegressionParameters
) -> Result<Self, Failed>
impl<T: RealNumber, M: Matrix<T>> SupervisedEstimator<M, <M as BaseMatrix<T>>::RowVector, RidgeRegressionParameters<T>> for RidgeRegression<T, M>
[src]
pub fn fit(
x: &M,
y: &M::RowVector,
parameters: RidgeRegressionParameters<T>
) -> Result<Self, Failed>
[src]
x: &M,
y: &M::RowVector,
parameters: RidgeRegressionParameters<T>
) -> Result<Self, Failed>
impl<T: RealNumber, M: Matrix<T>> SupervisedEstimator<M, <M as BaseMatrix<T>>::RowVector, BernoulliNBParameters<T>> for BernoulliNB<T, M>
[src]
pub fn fit(
x: &M,
y: &M::RowVector,
parameters: BernoulliNBParameters<T>
) -> Result<Self, Failed>
[src]
x: &M,
y: &M::RowVector,
parameters: BernoulliNBParameters<T>
) -> Result<Self, Failed>
impl<T: RealNumber, M: Matrix<T>> SupervisedEstimator<M, <M as BaseMatrix<T>>::RowVector, CategoricalNBParameters<T>> for CategoricalNB<T, M>
[src]
pub fn fit(
x: &M,
y: &M::RowVector,
parameters: CategoricalNBParameters<T>
) -> Result<Self, Failed>
[src]
x: &M,
y: &M::RowVector,
parameters: CategoricalNBParameters<T>
) -> Result<Self, Failed>
impl<T: RealNumber, M: Matrix<T>> SupervisedEstimator<M, <M as BaseMatrix<T>>::RowVector, GaussianNBParameters<T>> for GaussianNB<T, M>
[src]
pub fn fit(
x: &M,
y: &M::RowVector,
parameters: GaussianNBParameters<T>
) -> Result<Self, Failed>
[src]
x: &M,
y: &M::RowVector,
parameters: GaussianNBParameters<T>
) -> Result<Self, Failed>
impl<T: RealNumber, M: Matrix<T>> SupervisedEstimator<M, <M as BaseMatrix<T>>::RowVector, MultinomialNBParameters<T>> for MultinomialNB<T, M>
[src]
pub fn fit(
x: &M,
y: &M::RowVector,
parameters: MultinomialNBParameters<T>
) -> Result<Self, Failed>
[src]
x: &M,
y: &M::RowVector,
parameters: MultinomialNBParameters<T>
) -> Result<Self, Failed>
impl<T: RealNumber, M: Matrix<T>> SupervisedEstimator<M, <M as BaseMatrix<T>>::RowVector, DecisionTreeClassifierParameters> for DecisionTreeClassifier<T>
[src]
pub fn fit(
x: &M,
y: &M::RowVector,
parameters: DecisionTreeClassifierParameters
) -> Result<Self, Failed>
[src]
x: &M,
y: &M::RowVector,
parameters: DecisionTreeClassifierParameters
) -> Result<Self, Failed>
impl<T: RealNumber, M: Matrix<T>> SupervisedEstimator<M, <M as BaseMatrix<T>>::RowVector, DecisionTreeRegressorParameters> for DecisionTreeRegressor<T>
[src]
pub fn fit(
x: &M,
y: &M::RowVector,
parameters: DecisionTreeRegressorParameters
) -> Result<Self, Failed>
[src]
x: &M,
y: &M::RowVector,
parameters: DecisionTreeRegressorParameters
) -> Result<Self, Failed>
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]
pub fn fit(
x: &M,
y: &M::RowVector,
parameters: KNNClassifierParameters<T, D>
) -> Result<Self, Failed>
[src]
x: &M,
y: &M::RowVector,
parameters: KNNClassifierParameters<T, D>
) -> Result<Self, Failed>
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]
pub fn fit(
x: &M,
y: &M::RowVector,
parameters: KNNRegressorParameters<T, D>
) -> Result<Self, Failed>
[src]
x: &M,
y: &M::RowVector,
parameters: KNNRegressorParameters<T, D>
) -> Result<Self, Failed>
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]
pub fn fit(
x: &M,
y: &M::RowVector,
parameters: SVCParameters<T, M, K>
) -> Result<Self, Failed>
[src]
x: &M,
y: &M::RowVector,
parameters: SVCParameters<T, M, K>
) -> Result<Self, Failed>