Skip to content

Commit 7f3cb7f

Browse files
committed
Update warnings to use at-warn (JuliaStats#38)
1 parent b2181a2 commit 7f3cb7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GLMNet.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ function check_jerr(jerr, maxit)
214214
elseif jerr == 1000
215215
error("glmnet: all predictors are unpenalized")
216216
elseif -10001 < jerr < 0
217-
warn("glment: convergence for $(-jerr)th lambda value not reached after $maxit iterations")
217+
@warn("glment: convergence for $(-jerr)th lambda value not reached after $maxit iterations")
218218
elseif jerr < -10000
219-
warn("glmnet: number of non-zero coefficients along path exceeds $nx at $(maxit+10000)th lambda value")
219+
@warn("glmnet: number of non-zero coefficients along path exceeds $nx at $(maxit+10000)th lambda value")
220220
end
221221
end
222222

0 commit comments

Comments
 (0)