Open esantorella opened 4 years ago
Actually, I believe this has already been fixed in the version of the code on github. The version on Pypy needs to be updated.
Hi, although the line in cvglmnet.py has changed it gives me the same error:
as if the line is not changed.
How can I overcome this issue? I've also downgraded numpy version from 1.19 to 1.17.5.
For now I 'solved' it by setting foldid parameter to:
foldid = scipy.random.choice(10, size = y_train.shape[0], replace = True)
For a CV=10 Thank you
Error is still occurring, indicating installation packages have not been updated yet.
I pick up on what @DBeZ and @esantorella said, it would be so great if the Pypi repository could be updated. We unfortunately can't use a conda environment with the glmnet_python package :(
I ran the following code:
I get the following error:
I believe this can be corrected by changing line 260 of cvglmnet to
ma = scipy.tile(scipy.arange(nfolds), [1, nobs // nfolds])
.I will submit a pull request if you agree.