Closed arturgower closed 6 years ago
You have an intercept in your design matrix and Lasso.jl standardizes each column by its standard deviation by default, so your intercept turns into Inf
s. Depending on your goals, you can run fit as fit(LassoPath, X[:, 2:end], Y)
(Lasso.jl fits an unpenalized intercept by default) or fit(LassoPath, X, Y; standardize=false, intercept=false)
.
Thanks that's clear. I've added a warning explaining this and a mention of it in docs.
I'm using Julia 0.51 and Pkg.status("Lasso") = 0.1.0