| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
DataFrame.LinearModel
Description
Linear models for the dataframe ecosystem: regression (OLS, ridge, lasso, elastic net) and one-vs-rest logistic classification. Re-exports the focused submodules.
Synopsis
- module DataFrame.LinearModel.Regression
- module DataFrame.LinearModel.Logistic
- data SolverConfig = SolverConfig {
- scL1Lambda :: !Double
- scL2Lambda :: !Double
- scMaxIter :: !Int
- scTol :: !Double
- scSampleWeights :: !(Maybe (Vector Double))
- defaultSolverConfig :: SolverConfig
- data LinearModel = LinearModel {
- lmWeights :: !(Vector Double)
- lmIntercept :: !Double
- lmFeatureNames :: !(Vector Text)
Documentation
data SolverConfig #
Hyper-parameters for the FISTA solver.
Constructors
| SolverConfig | |
Fields
| |
Instances
| Show SolverConfig | |
Defined in DataFrame.LinearSolver Methods showsPrec :: Int -> SolverConfig -> ShowS # show :: SolverConfig -> String # showList :: [SolverConfig] -> ShowS # | |
| Eq SolverConfig | |
Defined in DataFrame.LinearSolver | |
data LinearModel #
A fitted linear classifier: predicts the positive class when
sum (weights .* features) + intercept > 0. Weights of exactly 0 mark
features dropped by the L1 penalty (filtered out by modelToExpr).
Constructors
| LinearModel | |
Fields
| |
Instances
| Show LinearModel | |
Defined in DataFrame.LinearSolver Methods showsPrec :: Int -> LinearModel -> ShowS # show :: LinearModel -> String # showList :: [LinearModel] -> ShowS # | |
| Eq LinearModel | |
Defined in DataFrame.LinearSolver | |