Skip to content

Commit 0195a55

Browse files
committed
Fix ssdm functions
1 parent f25ce83 commit 0195a55

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

R/mod_ssdm_fit.R

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -598,11 +598,10 @@ fit_sdm_models <- function(
598598
stringr::str_replace_all(" ", " ") %>%
599599
paste(collapse = "\n >>> ") %>%
600600
ecokit::cat_time(cat_timestamp = FALSE, level = 1L, ... = "\n")
601-
paste(collapse = "\n") %>%
602-
603-
ecokit::cat_sep(
604-
line_char_rep = 60L, sep_lines_before = 1L, sep_lines_after = 2L,
605-
line_char = "=", cat_bold = TRUE, cat_red = TRUE)
601+
602+
ecokit::cat_sep(
603+
line_char_rep = 60L, sep_lines_before = 1L, sep_lines_after = 2L,
604+
line_char = "=", cat_bold = TRUE, cat_red = TRUE)
606605
}
607606

608607
# |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

R/mod_ssdm_helpers.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,12 +1445,12 @@ prepare_input_data <- function(
14451445

14461446
sdm_model_settings <- function() {
14471447
list(
1448-
glm = list(control = list(maxit = 50L)),
1448+
glm = list(control = list(maxit = 200L)),
14491449
glmpoly = list(degree = 2L),
14501450
gam = list(method = "REML", select = TRUE, gamma = 1.2),
1451-
glmnet = list(maxit = 200000L),
1452-
mars = list(pmethod = "backward"),
1453-
gbm = list(n.trees = 3000L, interaction.depth = 2L),
1451+
glmnet = list(maxit = 100000L),
1452+
mars = list(pmethod = "backward", glm = list(maxit = 200L)),
1453+
gbm = list(n.trees = 2000L, interaction.depth = 2L),
14541454
rf = list(ntree = 1000L, nodesize = 5L),
14551455
ranger = list(
14561456
num.trees = 1000L, importance = "impurity", min.node.size = 5L),

0 commit comments

Comments
 (0)