View source: R/postprocess_intervals_classification.R
| laplace_conf_int_cls | R Documentation |
Predict-time entry point for classification confidence intervals.
Called by parsnip via
c(pkg = "kerasnip", fun = "laplace_conf_int_cls").
For each output, this uses Monte Carlo sampling from the Laplace posterior over logits, transforms to probability scale via sigmoid / softmax, and returns per-class quantile-based intervals.
laplace_conf_int_cls(object, x, laplace_data, lvl, 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 (from
|
lvl |
Character vector of class level names (from
|
level |
Confidence level (default 0.95). |
For single-output: a data frame with per-class
.pred_lower_Level and .pred_upper_Level columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.