Skip to content

Commit

Permalink
fix: bug when pareto_front was "auto" and refresh models
Browse files Browse the repository at this point in the history
  • Loading branch information
laresbernardo committed Oct 4, 2022
1 parent 4d1da7f commit 6587f65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/R/clusters.R
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ errors_scores <- function(df, balance = rep(1, 3)) {
theme_lares()
}

.bootci <- function(samp, boot_n) {
.bootci <- function(samp, boot_n = 1000) {
if (length(samp) > 1) {
samp_n <- length(samp)
samp_mean <- mean(samp, na.rm = TRUE)
Expand Down
1 change: 1 addition & 0 deletions R/R/pareto.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ robyn_pareto <- function(InputCollect, OutputModels,
# Prepare parallel loop
if (TRUE) {
if (check_parallel()) registerDoParallel(OutputModels$cores) else registerDoSEQ()
if (hyper_fixed) pareto_fronts <- 1
# Get at least 100 candidates for better clustering
if ("auto" %in% pareto_fronts) {
if (nrow(resultHypParam) <= pareto_models) {
Expand Down

0 comments on commit 6587f65

Please sign in to comment.