Skip to content

Commit

Permalink
change convergence criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
saracoco committed Dec 18, 2024
1 parent 4838be2 commit 4fd5faa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/fit_variational_h.R
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,11 @@ fit_variational_h <- function(input_data, max_attempts = 2, initialization = NUL
message("An error occurred during inference: ", e$message)
# retries <- retries + 1 # Increment retry count
fit_successful <- FALSE # Mark fit as unsuccessful
iter <- iter + 100
iter <- iter + 400
tol_rel_obj <- tol_rel_obj * 5
grad_samples <- grad_samples * 3
elbo_samples <- elbo_samples * 3


NULL # Ensure NULL is returned so loop can continue
})
Expand Down

0 comments on commit 4fd5faa

Please sign in to comment.