Skip to content

Commit

Permalink
don't modify case of no alpha attribute, which is RegressorCV
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasSchmidtblaicherQC committed Jan 31, 2024
1 parent 643b231 commit 86eeb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/glum/_glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ def _set_up_for_fit(self, y: np.ndarray) -> None:
elif (self.lower_bounds is None) and (self.upper_bounds is None):
if np.all(np.asarray(self.l1_ratio) == 0):
self._solver = "irls-ls"
elif getattr(self, "alpha", 0) == 0 and not self.alpha_search:
elif getattr(self, "alpha", 1) == 0 and not self.alpha_search:
self._solver = "irls-ls"
else:
self._solver = "irls-cd"
Expand Down

0 comments on commit 86eeb5e

Please sign in to comment.