statsmodels.gam.generalized_additive_model.GLMGam.score_factor¶
-
GLMGam.
score_factor
(params, scale=None)¶ weights for score for each observation
This can be considered as score residuals.
- Parameters
- Returns
- score_factor
ndarray_1d
A 1d weight vector used in the calculation of the score_obs. The score_obs are obtained by score_factor[:, None] * exog
- score_factor