View source: R/utils_calibration.R
calibrate_regression | R Documentation |
Enables post-hoc quantile GAM calibration of the ML predictions using the
qgam
tool.
calibrate_regression(
caretx_model,
newdata = NULL,
bs = "cr",
k = 20,
qu = 0.5,
form = NULL,
lsig = NULL,
err = NULL,
control = list(link = "identity"),
argGam = NULL,
...
)
caretx_model |
|
newdata |
test data set. |
bs |
basis function for the smoother, ignored if a formula provided. |
k |
degrees of freedom for the smoother, ignored if a formula provided.. |
qu |
quantile for the calibration, see: |
form |
GAM formula as specified by |
lsig |
the value of the log learning rate used to create the
Gibbs posterior, see: |
err |
an upper bound on the error of the estimated quantile curve,
see: |
control |
a list of control parameters passed
to |
argGam |
a list of parameters to be passed to
|
... |
extra arguments passed to |
The calibration is developed for the training data set and applied by prediction to the CV and, if newdata provided, to the test data.
a list of predx
objects (train, cv and, if newdata provided, test)
along with the gamObject named cal_fit
,
the chosen quantile value (qu
) and values of explained deviance (qu_tbl
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.