junyangq / snpnet

snpnet: Fast and scalable lasso/elastic-net solver for large SNP data
32 stars 15 forks source link

update snpnet.R to check early stopping condition immediately after l… #19

Closed yk-tanigawa closed 4 years ago

yk-tanigawa commented 5 years ago

…oading the rda file

This is a patch for this topic: https://github.com/junyangq/snpnet/issues/18

I also changed max.valid.idx > 2 to max.valid.idx > stopping.lag in the following line:

https://github.com/junyangq/snpnet/blob/7fff8316abf7211f8f939103a6502bb920b9dfe6/R/snpnet.R#L376

yk-tanigawa commented 4 years ago

I incorporated the same type of logic with the latest dev version in the lab.