Skip to content

Commit

Permalink
Merge branch 'master' into glm
Browse files Browse the repository at this point in the history
  • Loading branch information
s3alfisc authored Jan 4, 2025
2 parents 224bcc6 + a492a29 commit 3c71ab9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def test_context_capture(spline_data, method, family):
context_captured_fit_map = getattr(pf, method)(
"Y ~ _lspline(X2,[0,1])", context={"_lspline": _lspline}, **method_kwargs
)

for context_fit in [context_captured_fit, context_captured_fit_map]:
np.testing.assert_allclose(context_fit.coef(), explicit_fit.coef(), rtol=1e-12)
np.testing.assert_allclose(context_fit.se(), explicit_fit.se(), rtol=1e-12)
Expand Down

0 comments on commit 3c71ab9

Please sign in to comment.