using Lasso
X = rand(100, 5)
y = rand([0., 1.], 100)
path = fit(LassoPath, X, y)
cross_validate_path(path)
produces an error UndefVarError: y not defined. Should the default value for gen be changed to gen=Kfold(length(path.m.rr.y), 10) (or similar using a function to grab y from the RegularizationPath)?
https://github.com/JuliaStats/Lasso.jl/blob/55718966db53679e333d8a94749e8722b082796c/src/cross_validation.jl#L27-L36
For example,
produces an error
UndefVarError: y not defined
. Should the default value forgen
be changed togen=Kfold(length(path.m.rr.y), 10)
(or similar using a function to graby
from theRegularizationPath
)?