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 c1d9d6c commit 87663e6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
12 changes: 8 additions & 4 deletions R/fit_h.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@
#' @param min_mutations_number num: (type double) minimum number of accepted mutations for a segment to be included in the inference
#' @param n_components number of components specified from user
#'
#' @param initial_iter description
#' @param grad_samples description
#' @param elbo_samples description
#'
#' @return results_and_data = list(data = input_data_list, results = results, output_files_list = output_files_list)
#' @export
fit_h = function(x, max_attempts=2, INIT=TRUE, tolerance = 0.01, possible_k = c("2:1", "2:2", "2:0"), alpha = .05, min_mutations_number = 2, n_components = 0)
fit_h = function(x, max_attempts=2, INIT=TRUE, tolerance = 0.01, possible_k = c("2:1", "2:2", "2:0"), alpha = .05, min_mutations_number = 2, n_components = 0, initial_iter=200, grad_samples=200, elbo_samples=200)
{
# stopifnot(inherits(x, 'cnaqc'))

Expand Down Expand Up @@ -73,9 +77,9 @@ fit_h = function(x, max_attempts=2, INIT=TRUE, tolerance = 0.01, possible_k = c(
initialization = inits_chain,
max_attempts = max_attempts,
INIT = INIT,
initial_iter = 1000,
grad_samples = 10,
elbo_samples = 100,
initial_iter = initial_iter,
grad_samples = grad_samples,
elbo_samples = elbo_samples,
tolerance = tolerance)
}

Expand Down
11 changes: 10 additions & 1 deletion man/fit_h.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/fit_variational_h.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 87663e6

Please sign in to comment.