View source: R/conformal_infer.R
predict.int_conformal_full | R Documentation |
Prediction intervals from conformal methods
## S3 method for class 'int_conformal_full'
predict(object, new_data, level = 0.95, ...)
## S3 method for class 'int_conformal_cv'
predict(object, new_data, level = 0.95, ...)
## S3 method for class 'int_conformal_quantile'
predict(object, new_data, ...)
## S3 method for class 'int_conformal_split'
predict(object, new_data, level = 0.95, ...)
object |
An object produced by |
new_data |
A data frame of predictors. |
level |
The confidence level for the intervals. |
... |
Not currently used. |
For the CV+. estimator produced by int_conformal_cv()
, the intervals
are centered around the mean of the predictions produced by the
resample-specific model. For example, with 10-fold cross-validation, .pred
is the average of the predictions from the 10 models produced by each fold.
This may differ from the prediction generated from a model fit that was
trained on the entire training set, especially if the training sets are
small.
A tibble with columns .pred_lower
and .pred_upper
. If
the computations for the prediction bound fail, a missing value is used. For
objects produced by int_conformal_cv()
, an additional .pred
column
is also returned (see Details below).
int_conformal_full()
, int_conformal_cv()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.