Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Imports:
qs2,
R6,
Rcpp,
terra
terra (>=1.8-42)
Suggests:
base64enc,
butcher,
Expand Down
2 changes: 2 additions & 0 deletions inst/tinytest/test_integ_allocation.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ if (Sys.which("DinamicaConsole") == "") {
expect_stdout(
db$alloc_dinamica(
id_periods = 4,
gof_criterion = "auc",
gof_maximize = TRUE,
work_dir = file.path(db$path, "dinamica_test"),
keep_intermediate = FALSE
),
Expand Down
2 changes: 1 addition & 1 deletion vignettes/evoland.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ db$trans_preds_t <- db$get_pruned_trans_preds_t(

Now we fit partial models using training/validation splits, allowing for a goodness-of-fit (gof) estimation.
Here, we only fit a single partial model per transition, where we normally would create a list of candidates.
We can then pick the models with the best goodness of fit to retrain full models on all of the available predictor data; the full models are then used during extrapolation.
Next, fit_full_models() reads the partial models stored in db$trans_models_t, chooses the best model for each transition based on goodness of fit, and refits each chosen model on all available predictor data. Assigning the result back to db$trans_models_t stores these full models for the extrapolation step.

```{r}
#| label: trans-models
Expand Down
Loading