Scikit-learn offers a large variety of useful linear models. However, I am working on a problem which is linear with non-negativity constraints (i.e. solution variables should be non-negative).
I would like to use scikit-learn, but the only function I saw that can support currently non-negativity is Lasso(), via the 'positive=true' flag. LassoCV() or lasso_path() don't support non-negativity.
Are there other non-negative linear models available in scikit-learn? Are there plans to include these in the near future?
positive=True
constructor parameter toLassoCV
andlasso_path
would still be accepted as a PR I think. It does not add much complexity to the existing code base asLassoCV
andlasso_path
are wrappers forLasso
. – ogrisel