Open mgalardini opened 2 years ago
Hmm interesting, haven't seen that one before. I would think, looking at some of the glmnet code, that this might be non-convergence and maxiter could be increased
I see! I'll try setting maxit
to a larger number when calling cvglmnet
and see what happens. If that is really the culprit we could use a larger default either upstream or through the function calls in pyseer
. At any rate we should also catch the exception to fail more gracefully.
When running a lasso classification on some E. coli genomes I get the following error (the value of
--cor-filter
is irrelevant)Note the "Warning: Non-fatal error in glmnet library call: error code = -1 Check results for accuracy. Partial or no results returned." message.
There is no error with ridge classification (using the default value for
--alpha
). I am trying to come up with a minimal example to reproduce this, but I think at any rate we could handle this by catching the exception whenevercvglmnet
is called frompyseer
.