diff --git a/src/glum/_glm.py b/src/glum/_glm.py index 13db5d6f..4eb4bd7f 100644 --- a/src/glum/_glm.py +++ b/src/glum/_glm.py @@ -2372,8 +2372,7 @@ def _validate_hyperparameters(self) -> None: if self.alpha_search: if not isinstance(self.alpha, Iterable) and self.alpha is not None: raise ValueError( - "`alpha` should be an Iterable or None when `alpha_search`" - " is True" + "`alpha` should be an Iterable or None when `alpha_search` is True" ) if self.alpha is not None and ( (np.asarray(self.alpha) < 0).any() @@ -2383,7 +2382,7 @@ def _validate_hyperparameters(self) -> None: if not self.alpha_search: if not np.isscalar(self.alpha) and self.alpha is not None: raise ValueError( - "`alpha` should be a scalar or None when `alpha_search`" " is False" + "`alpha` should be a scalar or None when `alpha_search` is False" ) if self.alpha is not None and ( not isinstance(self.alpha, (int, float)) or self.alpha < 0 diff --git a/src/glum/_solvers.py b/src/glum/_solvers.py index 5e33eea3..a3b45254 100644 --- a/src/glum/_solvers.py +++ b/src/glum/_solvers.py @@ -878,7 +878,7 @@ def _lbfgs_solver( ) if info["warnflag"] == 1: warnings.warn( - "lbfgs failed to converge." " Increase the number of iterations.", + "lbfgs failed to converge. Increase the number of iterations.", ConvergenceWarning, ) elif info["warnflag"] == 2: