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: ndarray

observations of the underlying explanatory variable

Returns:
basisndarray

design matrix for the spline basis for given x_new.


Last update: Dec 23, 2024