Skip to main content
2 of 2
added mathjax, and improved formatting, plus fixed the acronym for fMRI: https://en.wikipedia.org/wiki/Functional_magnetic_resonance_imaging

Is number of features selected by lasso bounded by number of samples in the dataset?

I have been working on a project with fMRI data. It has a training set of $300 \times 21764$. I am working in python and have used lasso on it for feature selection.

For different values of the hyperparameter it sometimes selects more than $300$ features, is that possible for lasso? Or does sci-kit not use the standard lasso?