geopfa.extrapolation.assess_gp_model_fit¶
- assess_gp_model_fit(model, Y_true, Y_pred, Y_pred_std, constraints)[source]¶
Compute regression performance metrics and model diagnostics for a trained Gaussian Process model.
- Parameters:
model (GPy.models.GPRegression) – Trained GP regression model.
Y_true (numpy.ndarray) – True observed target values. Flattening is handled internally.
Y_pred (numpy.ndarray) – Predicted mean values from the GP model (same shape as Y_true).
Y_pred_std (numpy.ndarray) – Predicted standard deviations for the GP predictions.
constraints (dict) – Constraint information returned during GP construction, used to check whether any hyperparameters lie on their bounds.
- Returns:
dict – A dictionary with the following entries:
RMSEfloatRoot Mean Square Error.
R2floatCoefficient of determination.
MAEfloatMean Absolute Error.
Coverage_95floatFraction of observations lying inside ±2 sigma predictive intervals.
LogLikelihoodfloatGP model log marginal likelihood.
AICfloatAkaike Information Criterion
2*k - 2*logL.
BICfloatBayesian Information Criterion
k*ln(n) - 2*logL.
Params_at_boundslist of tupleParameters effectively pinned at their allowable bounds.
Notes
No transformations or standardization adjustments are performed here. Inputs should already be in the desired scale.
The ±2 sigma coverage statistic provides a simple approximate 95% interval assessment for GP predictive uncertainty.