geopfa.extrapolation.plot_residuals

plot_residuals(Y_true, Y_pred)[source]

Plot residual diagnostics: a histogram of residuals and a scatter plot of residuals versus predicted values.

Parameters:
  • Y_true (numpy.ndarray) – True observed target values. Will be reshaped to 1-D.

  • Y_pred (numpy.ndarray) – Predicted target values from the model (same shape as Y_true).

Notes

  • This visualization helps identify skew, outliers, and heteroscedasticity.

  • Behavior, figure layout, and plotting style are identical to the original version of this function.