You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having difficulties having consistent results as the set of lambda values selected from cvglmnet is not the same when using sparse and dense matrices:
lambdau using cvglmnet(x=X.todense().copy(), y=y.copy(), family='gaussian', parallel=True, keep=True, standardize=False, alpha=0.999, thresh=1e-10, standardize_resp=False) (the only difference is that a dense matrix is used as input):
I've been able to trace it back to elnet.py where the fortran call in the sparse case returns lmu_r 18 instead of 56, which truncates the sequence of lambdau.
I am having difficulties having consistent results as the set of
lambda
values selected fromcvglmnet
is not the same when using sparse and dense matrices:lambdau
usingcvglmnet(x=X.copy(), y=y.copy(), family='gaussian', parallel=True, keep=True, standardize=False, alpha=0.999, thresh=1e-10, standardize_resp=False)
:lambdau
usingcvglmnet(x=X.todense().copy(), y=y.copy(), family='gaussian', parallel=True, keep=True, standardize=False, alpha=0.999, thresh=1e-10, standardize_resp=False)
(the only difference is that a dense matrix is used as input):I've attached matrices (numpy format) to reproduce.
Xy.zip
Note: here's how to load matrices:
The text was updated successfully, but these errors were encountered: