PredictionResult
Container returned by GAM.predict() for type="response" or type="link".
Usage
PredictionResult(
values,
se,
linear_predictor,
lower=None,
upper=None,
)Bundles the point predictions together with their optional standard errors and interval bounds so that all quantities produced by a single predict() call travel together. Use values for the predictions themselves; the other attributes are populated only when the corresponding arguments (se=True, interval=...) were requested.
Attributes
values: numpy.ndarray-
Predicted values, shape
(n,). On the response scale (mu) whentype="response", or on the linear predictor scale (eta) whentype="link". se: numpy.ndarray or None-
Standard errors of the linear predictor, shape
(n,).Noneunlessse=Truewas passed topredict(). linear_predictor: numpy.ndarray-
Predictions on the linear predictor scale, shape
(n,). Always populated, regardless oftype, so that the response-scale mean can be recovered via the link function. lower: numpy.ndarray or None-
Lower bound of the requested interval, on the same scale as values.
Noneunless interval was set to"confidence","prediction", or"simultaneous". upper: numpy.ndarray or None-
Upper bound of the requested interval, on the same scale as values.
Noneunless interval was set.