Skip to content

Commit

Permalink
add iteration limit to the private fitGAM function to avoid infinite …
Browse files Browse the repository at this point in the history
…loop with Netlib BLAS/LAPACK, issue #160
  • Loading branch information
pr0m1th3as committed Sep 16, 2024
1 parent b5cf3ce commit 5d2b74a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inst/Regression/RegressionGAM.m
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,9 @@ function savemodel (obj, fname)
ns = rows (X);
Tol = this.Tol;
## Start training
while (! converged)
while (! converged || iter > 1000)
iter += 1;

## Single cycle of backfit
for j = 1:columns (X)

Expand Down

0 comments on commit 5d2b74a

Please sign in to comment.