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

DataFrame.Boosting.GBM

Description

Gradient boosting of regression trees (Friedman). Trees are fitted to the negative gradient of the loss each round and accumulated with a shrinkage factor; squared error gives regression, logistic deviance gives binary classification. predict is the additive score; gbProbaExpr / gbDecisionExpr give the classification probability / decision.

Synopsis

Documentation

data GBLoss Source #

The boosting loss.

Instances

Instances details
Show GBLoss Source # 
Instance details

Defined in DataFrame.Boosting.GBM

Eq GBLoss Source # 
Instance details

Defined in DataFrame.Boosting.GBM

Methods

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

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

data GBConfig Source #

Constructors

GBConfig 

Instances

Instances details
Show GBConfig Source # 
Instance details

Defined in DataFrame.Boosting.GBM

Eq GBConfig Source # 
Instance details

Defined in DataFrame.Boosting.GBM

Fit GBConfig (Expr Double) Source # 
Instance details

Defined in DataFrame.Boosting.GBM

Associated Types

type ModelOf GBConfig (Expr Double) 
Instance details

Defined in DataFrame.Boosting.GBM

type FrameReq GBConfig (Expr Double) 
Instance details

Defined in DataFrame.Boosting.GBM

type FrameReq GBConfig (Expr Double) Source # 
Instance details

Defined in DataFrame.Boosting.GBM

type ModelOf GBConfig (Expr Double) Source # 
Instance details

Defined in DataFrame.Boosting.GBM

data GBModel Source #

A fitted gradient-boosting model. gbInit is the constant initial score (mean, or log-odds for classification); gbTrees are the staged regression trees.

Constructors

GBModel 

Instances

Instances details
Show GBModel Source # 
Instance details

Defined in DataFrame.Boosting.GBM

Predict GBModel Source # 
Instance details

Defined in DataFrame.Boosting.GBM

Associated Types

type Prediction GBModel 
Instance details

Defined in DataFrame.Boosting.GBM

type Prediction GBModel Source # 
Instance details

Defined in DataFrame.Boosting.GBM

gbExprAtStage :: Int -> GBModel -> Maybe (Expr Double) Source #

The prediction expression using only the first k trees (staged predict).

gbProbaExpr :: GBModel -> Expr Double Source #

Probability expression for classification: sigmoid(score).

gbDecisionExpr :: GBModel -> Expr Bool Source #

Decision expression for classification: positive class when score > 0.