Skip to content

Commit

Permalink
RegressionGAM: fix iteration termination, issue #160
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0m1th3as committed Sep 24, 2024
1 parent aeaddf4 commit ebbc6ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/Regression/RegressionGAM.m
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ function savemodel (obj, fname)
ns = rows (X);
Tol = this.Tol;
## Start training
while (! converged || iter < 1000)
while (! (converged || iter > 1000))
iter += 1;

## Single cycle of backfit
Expand Down

0 comments on commit ebbc6ec

Please sign in to comment.