Skip to content

Commit

Permalink
more conservative tolerances
Browse files Browse the repository at this point in the history
  • Loading branch information
helske committed Oct 6, 2024
1 parent e6c1d84 commit c94ac22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/fit_mnhmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ fit_mnhmm <- function(model, inits, init_sd, restarts, threads, penalty, ...) {
if (is.null(dots$print_level)) dots$print_level <- 0
if (is.null(dots$xtol_abs)) dots$xtol_abs <- 1e-2
if (is.null(dots$ftol_abs)) dots$ftol_abs <- 1e-2
if (is.null(dots$xtol_rel)) dots$xtol_rel <- 1e-2
if (is.null(dots$xtol_rel)) dots$ftol_rel <- 1e-4
if (is.null(dots$xtol_rel)) dots$xtol_rel <- 1e-4
if (is.null(dots$xtol_rel)) dots$ftol_rel <- 1e-8
if (is.null(dots$check_derivatives)) dots$check_derivatives <- FALSE
out <- future.apply::future_lapply(seq_len(restarts), function(i) {
init <- unlist(create_initial_values(
Expand Down
4 changes: 2 additions & 2 deletions R/fit_nhmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ fit_nhmm <- function(model, inits, init_sd, restarts, threads, penalty, ...) {
if (is.null(dots$print_level)) dots$print_level <- 0
if (is.null(dots$xtol_abs)) dots$xtol_abs <- 1e-2
if (is.null(dots$ftol_abs)) dots$ftol_abs <- 1e-2
if (is.null(dots$xtol_rel)) dots$xtol_rel <- 1e-2
if (is.null(dots$xtol_rel)) dots$ftol_rel <- 1e-6
if (is.null(dots$xtol_rel)) dots$xtol_rel <- 1e-4
if (is.null(dots$xtol_rel)) dots$ftol_rel <- 1e-8
if (is.null(dots$check_derivatives)) dots$check_derivatives <- FALSE
out <- future.apply::future_lapply(seq_len(restarts), function(i) {
init <- unlist(create_initial_values(
Expand Down

0 comments on commit c94ac22

Please sign in to comment.