Skip to content

Commit

Permalink
Change the default setting of convergence criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
statwangz committed Oct 17, 2023
1 parent 9c413bf commit f394bd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/mfairSingleFactor.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fitSFSparse <- function(Y, X, init,
obs_indices,
learning_rate, tree_parameters,
stage1 = TRUE,
iter_max = 5e+3, tol_stage1 = 0.1, tol_stage2 = 1e-6,
iter_max = 5e+3, tol_stage1 = 0.1, tol_stage2 = 1e-8,
verbose_sf = TRUE, verbose_loop = TRUE,
save_tree_list = TRUE) {
N <- nrow(Y)
Expand Down Expand Up @@ -192,7 +192,7 @@ fitSFMissing <- function(Y, X, init,
obs_indices,
learning_rate, tree_parameters,
stage1 = TRUE,
iter_max = 5e+3, tol_stage1 = 0.1, tol_stage2 = 1e-6,
iter_max = 5e+3, tol_stage1 = 0.1, tol_stage2 = 1e-8,
verbose_sf = TRUE, verbose_loop = TRUE,
save_tree_list = TRUE) {
N <- nrow(Y)
Expand Down Expand Up @@ -361,7 +361,7 @@ fitSFMissing <- function(Y, X, init,
fitSFFully <- function(Y, X, init,
learning_rate, tree_parameters,
stage1 = TRUE,
iter_max = 5e+3, tol_stage1 = 0.1, tol_stage2 = 1e-6,
iter_max = 5e+3, tol_stage1 = 0.1, tol_stage2 = 1e-8,
verbose_sf = TRUE, verbose_loop = TRUE,
save_tree_list = TRUE) {
N <- nrow(Y)
Expand Down

0 comments on commit f394bd8

Please sign in to comment.