-
Notifications
You must be signed in to change notification settings - Fork 0
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
Setting my_lambda and nlambda on MADMMplasso() #54
Comments
Hello Waldir, |
OK, so that means one can't freely assign |
nlambda can be any positive integer so it can be freely specified. I was only saying that it not the same as ncol(y). |
OK, so why does this code give an error (main branch)? |
The code above gives an error of |
Yes, it gave error because of maxgrid = 1L, nlambda = 2L. According to the documentation, nlambda should be less than or equal to maxgrid. |
gg is regenerated in the function with a length equal to maxgrid before the loop. |
Great, thanks! I read that part, but didn't catch the exception. We should validate that Regarding |
I agree with you. I reassigned gg to gg3 in the MADMMplasso() after calculating gg3. I did not consider to cause any confusion since this is internal assignment. So gg is changed from the initial gg in the call to gg3. |
Quick question: when calling MADMMplasso(), does it make sense to set
nlambda != ncol(y)
? There doesn't seem to be anything in the code that prevents this, but this bit of code implies that ifmy_lambda = NULL
,lambda_i
is created with lengthncol(y)
:MADMMplasso/R/MADMMplasso.R
Lines 97 to 113 in 081383c
This then breaks this later bit of the code, since the vectors
lam[, i]
will have a different size than the vectorslambda_i[[i]]
:MADMMplasso/R/MADMMplasso.R
Lines 173 to 177 in 081383c
The text was updated successfully, but these errors were encountered: