dataframe-learn-2.4.1.0: Interpretable, expression-returning machine learning for the dataframe ecosystem.
Safe HaskellNone
LanguageHaskell2010

DataFrame.PCA

Description

Principal component analysis via the symmetric Jacobi eigensolver on the covariance of the (optionally standardized) feature columns. fit trains a PCAModel (components + explained variance); the projection is exposed as pcaExprs / pcaTransform (PCA is a transformer, so it has no Predict).

Synopsis

Documentation

data NComponents Source #

How many components to keep.

Constructors

NComp !Int 
VarianceCovered !Double 

Instances

Instances details
Show NComponents Source # 
Instance details

Defined in DataFrame.PCA

Eq NComponents Source # 
Instance details

Defined in DataFrame.PCA

data PCAConfig Source #

Instances

Instances details
Show PCAConfig Source # 
Instance details

Defined in DataFrame.PCA

Eq PCAConfig Source # 
Instance details

Defined in DataFrame.PCA

Fit PCAConfig [Expr Double] Source # 
Instance details

Defined in DataFrame.PCA

Associated Types

type ModelOf PCAConfig [Expr Double] 
Instance details

Defined in DataFrame.PCA

type FrameReq PCAConfig [Expr Double] 
Instance details

Defined in DataFrame.PCA

type FrameReq PCAConfig [Expr Double] Source # 
Instance details

Defined in DataFrame.PCA

type ModelOf PCAConfig [Expr Double] Source # 
Instance details

Defined in DataFrame.PCA

data PCAModel Source #

A fitted PCA. pcaComponents are sklearn's components_ (row i is the i-th loading vector); pcaScale is Just the per-column std when standardizing.

Instances

Instances details
Show PCAModel Source # 
Instance details

Defined in DataFrame.PCA

Eq PCAModel Source # 
Instance details

Defined in DataFrame.PCA

pcaExprs :: PCAModel -> [(Text, Expr Double)] Source #

Per-component projection expressions, named pc1, pc2, …

pcaTransform :: PCAModel -> Transform Source #

The PCA projection as a composable fitted Transform.