View source: R/postprocess_intervals_regression.R
| laplace_pred_int_reg | R Documentation |
Predict-time entry point for regression prediction intervals. Called by
parsnip via
c(pkg = "kerasnip", fun = "laplace_pred_int_reg").
For each output in the model, this builds the per-sample predictive variance
(uncertainty on a new observation Y|X = epistemic variance + observation
noise) from the stored Laplace posterior and returns symmetric Normal-based
intervals at the requested level.
laplace_pred_int_reg(object, x, laplace_data, level = 0.95)
object |
The raw Keras model (from |
x |
Processed predictor data (matrix or array). |
laplace_data |
A named list of Laplace posterior data, one entry per
output (from |
level |
Confidence level (default 0.95). Passed through from
|
A named list of matrices (one per output), each with columns
.pred, .pred_lower, and .pred_upper.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.