Closed jbrea closed 4 years ago
Are you sure you are using LassoPlot v1.1.0? It should be compatible with Lasso v0.5.0.
Can you include the output of using Pkg; Pkg.status()
?
Sorry, I probably didn't restart julia when I added the new versions. I get many warnings but the plot is working.
julia> plot(path)
┌ Warning: `setindex!(df::DataFrame, v::AbstractVector, col_ind::ColumnIndex)` is deprecated, use `begin
│ df[!, col_ind] = v
│ df
│ end` instead.
│ caller = #plot#1(::Symbol, ::Nothing, ::Array{Any,1}, ::MinAICc, ::Array{SegSelect,1}, ::typeof(plot), ::LassoPath{LinearModel{GLM.LmResp{Array{Float64,1}},CovarianceCoordinateDescent{Float64,true,Array{Float64,2},Lasso.RandomCoefficientIterator,Nothing}},Float64}) at plots.jl:52
└ @ LassoPlot ~/.julia/packages/LassoPlot/J9WEN/src/plots.jl:52
┌ Warning: `setindex!(df::DataFrame, v::AbstractVector, col_ind::ColumnIndex)` is deprecated, use `begin
│ df[!, col_ind] = v
│ df
│ end` instead.
│ caller = #plot#1(::Symbol, ::Nothing, ::Array{Any,1}, ::MinAICc, ::Array{SegSelect,1}, ::typeof(plot), ::LassoPath{LinearModel{GLM.LmResp{Array{Float64,1}},CovarianceCoordinateDescent{Float64,true,Array{Float64,2},Lasso.RandomCoefficientIterator,Nothing}},Float64}) at plots.jl:89
└ @ LassoPlot ~/.julia/packages/LassoPlot/J9WEN/src/plots.jl:89
┌ Warning: `melt(df::AbstractDataFrame, id_vars; variable_name::Symbol=:variable, value_name::Symbol=:value, view::Bool=false)` is deprecated, use `stack(df, Not(id_vars); variable_name=variable_name, value_name=value_name, view=view)` instead.
│ caller = #plot#1(::Symbol, ::Nothing, ::Array{Any,1}, ::MinAICc, ::Array{SegSelect,1}, ::typeof(plot), ::LassoPath{LinearModel{GLM.LmResp{Array{Float64,1}},CovarianceCoordinateDescent{Float64,true,Array{Float64,2},Lasso.RandomCoefficientIterator,Nothing}},Float64}) at plots.jl:92
└ @ LassoPlot ~/.julia/packages/LassoPlot/J9WEN/src/plots.jl:92
┌ Warning: `melt(df::AbstractDataFrame, id_vars; variable_name::Symbol=:variable, value_name::Symbol=:value, view::Bool=false)` is deprecated, use `stack(df, Not(id_vars); variable_name=variable_name, value_name=value_name, view=view)` instead.
│ caller = #plot#1(::Symbol, ::Nothing, ::Array{Any,1}, ::MinAICc, ::Array{SegSelect,1}, ::typeof(plot), ::LassoPath{LinearModel{GLM.LmResp{Array{Float64,1}},CovarianceCoordinateDescent{Float64,true,Array{Float64,2},Lasso.RandomCoefficientIterator,Nothing}},Float64}) at plots.jl:93
└ @ LassoPlot ~/.julia/packages/LassoPlot/J9WEN/src/plots.jl:93
┌ Warning: `getindex(df::DataFrame, col_ind::ColumnIndex)` is deprecated, use `df[!, col_ind]` instead.
│ caller = #plot#1(::Symbol, ::Nothing, ::Array{Any,1}, ::MinAICc, ::Array{SegSelect,1}, ::typeof(plot), ::LassoPath{LinearModel{GLM.LmResp{Array{Float64,1}},CovarianceCoordinateDescent{Float64,true,Array{Float64,2},Lasso.RandomCoefficientIterator,Nothing}},Float64}) at plots.jl:96
└ @ LassoPlot ~/.julia/packages/LassoPlot/J9WEN/src/plots.jl:96
┌ Warning: `getindex(df::DataFrame, col_ind::ColumnIndex)` is deprecated, use `df[!, col_ind]` instead.
│ caller = #plot#1(::Symbol, ::Nothing, ::Array{Any,1}, ::MinAICc, ::Array{SegSelect,1}, ::typeof(plot), ::LassoPath{LinearModel{GLM.LmResp{Array{Float64,1}},CovarianceCoordinateDescent{Float64,true,Array{Float64,2},Lasso.RandomCoefficientIterator,Nothing}},Float64}) at plots.jl:97
└ @ LassoPlot ~/.julia/packages/LassoPlot/J9WEN/src/plots.jl:97
julia> using Pkg; Pkg.status()
Status `/tmp/Project.toml`
[a93c6f00] DataFrames v0.20.0
[b4fcebef] Lasso v0.5.0
[21d151f5] LassoPlot v1.1.0
No worries. Happens to me often. Glad it worked out.
results in
This is in julia 1.3.0 with Lasso v0.5.0 or v0.4.0, LassoPlot v1.1.0 or v1.0.1 and DataFrames v0.20.0.