Skip to content

Commit

Permalink
Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lbittarello committed Nov 11, 2024
1 parent 83185f4 commit dbeb16c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Changelog
=========

3.1.0 - 2024-11-08
3.1.0 - 2024-11-11
------------------

**New features:**
Expand Down
4 changes: 2 additions & 2 deletions src/glum/_glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def _one_over_var_inf_to_val(arr: np.ndarray, val: float) -> np.ndarray:
If values are zeros, return val.
"""
zeros = np.where(np.abs(arr) < np.sqrt(np.finfo(arr.dtype).eps))
zeros = np.where(np.abs(arr) < np.sqrt(10 * np.finfo(arr.dtype).eps))
with np.errstate(divide="ignore"):
one_over = 1 / arr
one_over[zeros] = val
Expand Down Expand Up @@ -1104,7 +1104,7 @@ def _solve(
family=self._family_instance,
link=self._link_instance,
max_iter=max_iter,
max_inner_iter=self.max_inner_iter,
max_inner_iter=getattr(self, "max_inner_iter", 100_000),
gradient_tol=self._gradient_tol,
step_size_tol=self.step_size_tol,
fixed_inner_tol=fixed_inner_tol,
Expand Down

0 comments on commit dbeb16c

Please sign in to comment.