statsmodels.gam.smooth_basis.BSplines.transform¶
-
BSplines.
transform
(x_new)¶ create the spline basis for new observations
The main use of this stateful transformation is for prediction using the same specification of the spline basis.
- Parameters
- x_new: array
observations of the underlying explanatory variable
- Returns
- basis
ndarray
design matrix for the spline basis for given
x_new
.
- basis