gamboosttrain
statistics: Mdl = gamboosttrain (X, Y, Method, NumTrees, LearnRate, MaxNumSplits)
statistics: Mdl = gamboosttrain (X, Y, Method, NumTrees, LearnRate, MaxNumSplits, Verbose, NumPrint, F0)
statistics: Mdl = gamboosttrain (…, Verbose, NumPrint)
Fit a generalized additive model of boosted trees.
Mdl = gamboosttrain (X, Y, Method,
NumTrees, LearnRate, MaxNumSplits) boosts one tree per
column of X in each round and returns the additive model as a
structure. It is the fitting engine shared by ClassificationGAM and
RegressionGAM, and it is not meant to be called directly.
1 the logistic deviance,
as a classifier is fitted, and 2 the squared error, as a regression
is fitted.
1 is a stump.
RelTol column is the relative improvement the round
bought, which is what the stopping rule reads. MATLAB prints a column under
the same heading holding a quantity of its own that cannot be derived from
anything else it reports, so the two are not comparable.
Mdl is a structure with the following fields.
Intercept, the constant term the additive terms are added to.
For a classifier it is fitted rather than fixed: it is seeded with the
log-odds of the response mean and then collects the constant each shape
function gives up when it is recentred. For a regression it is the response
mean and stays there.
BinEdges, a cell of row vectors, the cut points each
predictor was binned at.
ShapeValues, a cell of column vectors, one value per
bin. A shape function is a step function, so this is the whole of it however
many trees produced it.
NumTrees, the number of rounds actually performed.
ReasonForTermination, why fitting stopped.
Deviance, the deviance at the last round.
Residuals, the residual vector at the last round.
See also: gamboostpredict, gamtrain, ClassificationGAM, RegressionGAM
Source Code: gamboosttrain