-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with cvAcc for ENLR #67
Comments
fixed issue "Error with cvAcc for ENLR" #67 @JuliaRegistrator register
Hi, thanks for spotting it. I fixed the bug. Your example exposed it as the number of observations is close to the number of variables in the tangent space.
actually counted "half" of the labels counted by the GLMnet function i call to fit the model. This created the error from GLMnet you reported. I fixed it by simply using argument
which makes the declaration compatible with the GLMnet code. I wonder, however, wether the authors actually wanted to set the I have created v0.3.7 with the fix. |
Using cvAcc with ENLR, it may occur that lambda_min_ratio is wrongly estimated, resulting in an error from GLMNet (TaskFailedException: cannot specify both lambda and lambda_min_ratio). This could be avoided by passing the correct value of lambda_min_ratio.
This error is not raised when fitting directly ENLR, it is raised only with cvAcc.
Minimal example:
My guess is that
_getDim
(in tools.jl) is not returning the same dimension as the dimension of the ℍVector, when projected in the tangent space (done in_getFeat_fit
), resulting in this error message in GLMNet (https://github.com/JuliaStats/GLMNet.jl/blob/master/src/GLMNet.jl#L225)The text was updated successfully, but these errors were encountered: