Model comparison routine to facilitate model development and quick comparisons of the skill of various models.
pr_fit_comparison(
random_seeds = c(1, 12, 40),
models = c("LIN", "TT", "TTs", "PTT", "PTTs", "M1", "M1s", "AT", "SQ", "SQb", "SM1",
"SM1b", "PA", "PAb", "PM1", "PM1b", "UN", "UM1", "SGSI", "AGSI"),
data = phenor::phenocam_DB,
method = "GenSA",
control = list(max.call = 10, temperature = 10000),
par_ranges = system.file("extdata", "parameter_ranges.csv", package = "phenor",
mustWork = TRUE),
ncores = 1
)
a vector with random seeds for cross validation
list of models to compare
which standard or custom dataset to use
optimization method to use (default = GenSA) - GenSA : Generalized Simulated Annealing algorithm - genoud : GENetic Optimization Using Derivatives - BayesianTools: various bayesian based optimization tools
additional optimization control parameters (default = list(max.call = 5000, temperature = 10000))
location of the parameter ranges of the models
number of cores to use to calculate model comparisons, system specific and defaults to 1 threat (default = 1)