Skip to content

Commit

Permalink
*_gaussian.c: Changed < to <= for convergence check; fixes #46
Browse files Browse the repository at this point in the history
  • Loading branch information
pbreheny committed Aug 11, 2021
1 parent 989b6dc commit 1f9b9a0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
"label": "GitHub",
"message": "3.4.0",
"message": "3.4.0.1",
"color": "blue"
}
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: grpreg
Title: Regularization Paths for Regression Models with Grouped Covariates
Version: 3.4.0
Date: 2021-07-22
Version: 3.4.0.1
Date: 2021-08-11
Authors@R: c(
person("Patrick", "Breheny", role=c("aut","cre"), email="[email protected]", comment=c(ORCID="0000-0002-0650-1119")),
person("Yaohui", "Zeng", role="ctb"),
Expand Down
4 changes: 2 additions & 2 deletions src/gdfit_gaussian.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,10 @@ SEXP gdfit_gaussian(SEXP X_, SEXP y_, SEXP penalty_, SEXP K1_, SEXP K0_,
gd_gaussian(b, X, r, g, K1, K, n, l, p, penalty, l1, l2, gamma, df, a, &maxChange);
}
}

// Check convergence
for (int j=0; j<p; j++) a[j] = b[l*p+j];
if (maxChange < eps*sdy) break;
if (maxChange <= eps*sdy) break;
}
// Scan for violations in strong set
violations = check_strong_set(e2, e, xTr, X, r, K1, K, lam[l], n, J, m);
Expand Down
2 changes: 1 addition & 1 deletion src/lcdfit_gaussian.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ SEXP lcdfit_gaussian(SEXP X_, SEXP y_, SEXP penalty_, SEXP K1_, SEXP K0_, SEXP l

// Check for convergence
for (int j=0; j<p; j++) a[j] = b[l*p+j];
if (maxChange < eps*sdy) break;
if (maxChange <= eps*sdy) break;
}

// Scan for violations
Expand Down

0 comments on commit 1f9b9a0

Please sign in to comment.