[][src]Trait smartcore::api::UnsupervisedEstimator

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

An estimator for unsupervised learning, that provides method fit to learn from data

Required methods

pub fn fit(x: &X, 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.
  • parameters - hyperparameters of an algorithm
Loading content...

Implementors

impl<T: RealNumber + Sum, M: Matrix<T>> UnsupervisedEstimator<M, KMeansParameters> for KMeans<T>[src]

impl<T: RealNumber + Sum, M: Matrix<T>, D: Distance<Vec<T>, T>> UnsupervisedEstimator<M, DBSCANParameters<T, D>> for DBSCAN<T, D>[src]

impl<T: RealNumber, M: Matrix<T>> UnsupervisedEstimator<M, PCAParameters> for PCA<T, M>[src]

impl<T: RealNumber, M: Matrix<T>> UnsupervisedEstimator<M, SVDParameters> for SVD<T, M>[src]

Loading content...