I am confused about the behavior of the lasso path when running linear_model.lars_path
(model = 'lasso') in scikit-learn.
I thought that once a weight (coefficient) becomes active (diff from 0) it must remain active during all the forthcoming steps of the LARS algorithm.
When running the algorithm on my data, I noticed that sometimes a coefficient would become active then later it would go to zero (be removed from the active set). It this the correct behavior of the LARS algorithm, or could there be a bug in the scikit-learn implementation?.