
Convert a legacy Opal fit to the staged object workflow
opal_from_fit.RdVerifies the saved fitted objective without optimising or sampling. Existing diagnostics, posterior draws, derived outputs, and provenance are preserved.
Usage
opal_from_fit(x, integrity = c("portable", "exact"))See also
Other assessment workflow:
opal_attach_fit(),
opal_attach_mcmc(),
opal_build(),
opal_check(),
opal_derived(),
opal_example_inputs(),
opal_fit(),
opal_io,
opal_mcmc(),
opal_obj(),
opal_posterior(),
opal_project(),
opal_report(),
opal_update()
Examples
legacy <- read_opal_fit(system.file("extdata", "opaka_quickstart_fit.rds",
package = "opal"), integrity = "portable")
#> Warning: The saved fit used opal 0.1.4; the current version is 0.1.5.
assessment <- opal_from_fit(legacy)
#> Warning: The saved fit used opal 0.1.4; the current version is 0.1.5.
summary(assessment)
#> <opal_obj> fitted
#> Active parameters: 127
#> Objective: 1832.412
#> Fit check: not run | MCMC check: not run