JuliaStats / Lasso.jl

Lasso/Elastic Net linear and generalized linear models
Other
143 stars 31 forks source link

StackOverflow with type Vector{Union{Float64, Missing}} even if no missing values present #75

Open adienes opened 1 year ago

adienes commented 1 year ago
julia> y = Vector{Union{Float64, Missing}}()
Union{Missing, Float64}[]

julia> append!(y, [1,2,3])
3-element Vector{Union{Missing, Float64}}:
 1.0
 2.0
 3.0

julia> X = rand(3,3)
3×3 Matrix{Float64}:
 0.830955  0.821036  0.235061
 0.028721  0.326948  0.560919
 0.905771  0.673137  0.986464

julia> fit(LassoPath, X, y)
ERROR: StackOverflowError: