Consider this line:
|
error("coordinate descent failed to converge in $maxiter iterations at λ = $λ") |
It would be much better and more kosher to use throw() along with a proper exception.
As an alternative, which I actually think makes more sense, you could just throw a warning instead.
Consider this line:
Lasso.jl/src/coordinate_descent.jl
Line 619 in ea74151
It would be much better and more kosher to use
throw()along with a proper exception.As an alternative, which I actually think makes more sense, you could just throw a warning instead.