| sample_model {lgpr} | R Documentation |
Fitting a model
Description
-
sample_modeltakes an lgpmodel object and fits it usingsampling. -
optimize_modeltakes an lgpmodel object and fits it usingoptimizing.
Usage
sample_model(
model,
verbose = TRUE,
quiet = FALSE,
skip_postproc = is_f_sampled(model),
...
)
optimize_model(model, ...)
Arguments
model |
An object of class lgpmodel. |
verbose |
Can messages be printed? |
quiet |
Should all output messages be suppressed? You need to set
also |
skip_postproc |
Should all postprocessing be skipped? If this is
|
... |
Optional arguments passed to
|
Value
-
sample_modelreturns an object of class lgpfit containing the parameter draws, the originalmodelobject, and possible postprocessing results. See documentation of lgpfit for more information. -
optimize_modeldirectly returns the list returned byoptimizing. See its documentation for more information.
See Also
Other main functions:
create_model(),
draw_pred(),
get_draws(),
lgp(),
pred(),
prior_pred()