| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
DataFrame.GMM
Description
Gaussian mixture models fitted by EM. Full covariance by default (with a
diagonal option and an automatic fall-back when a covariance is not positive
definite), log-space responsibilities, and Cholesky-based densities for
stability. predict is the hard (arg-max) component assignment; per-component
log-densities are available via gmmLogDensityExprs.
Synopsis
- module DataFrame.Model
- data CovType
- data GMMConfig = GMMConfig {
- gmmK :: !Int
- gmmCovType :: !CovType
- gmmMaxIter :: !Int
- gmmTol :: !Double
- gmmRegCovar :: !Double
- gmmSeed :: !Int
- defaultGMMConfig :: GMMConfig
- data GMMModel = GMMModel {
- gmmWeights :: !(Vector Double)
- gmmMeans :: !(Vector (Vector Double))
- gmmCovariances :: !(Vector Matrix)
- gmmConverged :: !Bool
- gmmNIter :: !Int
- gmmLogLikelihood :: !Double
- gmmNObs :: !Int
- gmmFeatureNames :: !(Vector Text)
- gmmLogDensityExprs :: GMMModel -> Map Int (Expr Double)
- gmmBIC :: GMMModel -> Double
- gmmAIC :: GMMModel -> Double
Documentation
module DataFrame.Model
Constructors
| GMMConfig | |
Fields
| |
Instances
A fitted mixture. gmmCovariances are the per-component covariance matrices.
Constructors
| GMMModel | |
Fields
| |
Instances
| Show GMMModel Source # | |||||
| Predict GMMModel Source # | |||||
Defined in DataFrame.GMM Associated Types
| |||||
| Eq GMMModel Source # | |||||
| type Prediction GMMModel Source # | |||||
Defined in DataFrame.GMM | |||||