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

DataFrame.LinearModel.Regression

Description

Linear regression with the standard penalties: OLS (QR), ridge (Cholesky), and lasso/elastic net (FISTA). fit produces a LinearRegressor; predict compiles it to an Expr Double over the raw feature columns.

Synopsis

Documentation

data Penalty Source #

Regularization choice. alpha is the penalty strength; l1Ratio mixes L1/L2.

Instances

Instances details
Show Penalty Source # 
Instance details

Defined in DataFrame.LinearModel.Regression

Eq Penalty Source # 
Instance details

Defined in DataFrame.LinearModel.Regression

Methods

(==) :: Penalty -> Penalty -> Bool #

(/=) :: Penalty -> Penalty -> Bool #

data LinearConfig Source #

Hyperparameters for linear regression: the penalty and the FISTA solver config.

Constructors

LinearConfig 

Instances

Instances details
Show LinearConfig Source # 
Instance details

Defined in DataFrame.LinearModel.Regression

Eq LinearConfig Source # 
Instance details

Defined in DataFrame.LinearModel.Regression

SegmentFit LinearConfig Double Source #

Linear segments with exact closed-form pooling. λ = 0 is independent OLS; λ > 0 shrinks each segment's coefficients toward the n_g-weighted mean of the per-segment fits.

Instance details

Defined in DataFrame.Segmented

Fit LinearConfig (Expr Double) Source # 
Instance details

Defined in DataFrame.LinearModel.Regression

type FrameReq LinearConfig (Expr Double) Source # 
Instance details

Defined in DataFrame.LinearModel.Regression

type ModelOf LinearConfig (Expr Double) Source # 
Instance details

Defined in DataFrame.LinearModel.Regression

data LinearRegressor Source #

A fitted linear regressor. regCoef and regIntercept are sklearn's coef_ / intercept_ in raw feature space.

Constructors

LinearRegressor