gamtrain
statistics: Mdl = gamtrain (X, Y, Knots, Order, Method, Inter, P1, P2)
Fit a generalized additive model of smoothing splines.
Mdl = gamtrain (X, Y, Knots, Order,
Method, Inter, P1, P2) fits one univariate spline
per column of X 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.
NaN.
1 boosts the log-odds
by gradient descent, as a classifier is fitted, and 2 backfits the
partial residuals, as a regression is fitted.
Mdl is a structure with the following fields.
Intercept, the constant term the additive terms are added to.
Parameters, a structure array of piecewise
polynomials in the form ppval consumes, one per predictor.
Iterations, the number of iterations performed.
Residuals, the residual vector at the last
iteration.
RSS, the scalar residual sum of squares for Method 1 and
the per-term criterion the backfitting stops on for Method
2.
See also: gampredict, ClassificationGAM, RegressionGAM, fitcgam, fitrgam
Source Code: gamtrain