Load a fit from a
Description
Reads a portable .fitrx archive written by [ferx_save_fit](ferx_save_fit.qmd)(or by the ferx-core Rust CLI’s --output flag) and reconstructs a ferx_fit-classed list. The returned object is structurally compatible with one returned by [ferx_fit](ferx_fit.qmd) for the fields covered by the cross-language schema, plus any R-specific fields the writer preserved under r_extras.
Usage
ferx_load_fit(path)Arguments
path: Path to a.fitrxfile.
Details
To call [ferx_predict](ferx_predict.qmd) on a loaded fit, the embedded model source can be re-parsed through the existing pipeline.
Seealso
[ferx_save_fit](ferx_save_fit.qmd). Other utilities: [ferx_columns](ferx_columns.qmd)(), [ferx_example](ferx_example.qmd)(), [ferx_save_fit](ferx_save_fit.qmd)()
Concept
utilities
Value
A ferx_fit-classed list.
Examples
ex <- ferx_example("warfarin")
fit <- ferx_fit(ex$model, ex$data, method = "gn", covariance = FALSE)
tmp <- tempfile(fileext = ".rds")
ferx_save_fit(fit, tmp)
fit2 <- ferx_load_fit(tmp)
identical(fit$theta, fit2$theta)