
Generic function to write summary outputs from created models.
Source:R/write_output.R
write_summary.RdThe write_summary function is a wrapper function to create
summaries from fitted DistributionModel or BiodiversityScenario
objects. This function will extract parameters and statistics about the used
data from the input object and writes the output as either 'rds' or
'rdata' file. Alternative, more open file formats are under
consideration.
Arguments
- mod
Provided
DistributionModelorBiodiversityScenarioobject.- fname
A
characterdepicting an output filename. The suffix determines the file type of the output (Options:'rds','rdata').- partial
A
logicalvalue determining whether partial variable contributions should be calculated and added to the model summary. Note that this can be rather slow (Default:FALSE).- verbose
logicalindicating whether messages should be shown. OverwritesgetOption("ibis.setupmessages")(Default:TRUE).- ...
Any other arguments passed on the individual functions.
Note
No predictions or tabular data is saved through this function. Use
write_output() to save those.
Examples
if (FALSE) { # \dontrun{
x <- distribution(background) |>
add_biodiversity_poipo(virtual_points, field_occurrence = 'observed', name = 'Virtual points') |>
add_predictors(pred_current, transform = 'scale',derivates = 'none') |>
engine_xgboost(nrounds = 2000) |> train(varsel = FALSE, only_linear = TRUE)
write_summary(x, "testmodel.rds")
} # }