Skip to content

Commit

Permalink
Bugfix in breakpoints detection
Browse files Browse the repository at this point in the history
  • Loading branch information
jovoni committed Apr 15, 2024
1 parent 5a2b16f commit cd18f63
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/fit_task2.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ breakpoints_inference <- function(
stats::na.omit()

status <- 'FAIL'

while (status == 'FAIL') {
while ((status == 'FAIL') & (nrow(res) > 0)) {
best_res <- res %>% dplyr::filter(lp == max(lp))

best_fit <- fits[[paste0(best_res$J, " _ ", best_res$iter)]]
Expand Down

0 comments on commit cd18f63

Please sign in to comment.