What non-negative linear models are supported/planned in scikit-learn?
Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: City Beneath the Waves Looping
--
Chapters
00:00 Question
00:50 Accepted answer (Score 3)
01:18 Thank you
--
Full question
https://stackoverflow.com/questions/1432...
Accepted answer links:
https://github.com/scikit-learn/scikit-l...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #linearregression #scikitlearn
#avk47
--
Music by Eric Matyas
https://www.soundimage.org
Track title: City Beneath the Waves Looping
--
Chapters
00:00 Question
00:50 Accepted answer (Score 3)
01:18 Thank you
--
Full question
https://stackoverflow.com/questions/1432...
Accepted answer links:
https://github.com/scikit-learn/scikit-l...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #linearregression #scikitlearn
#avk47
ACCEPTED ANSWER
Score 3
The current stable version of scikit-learn supports the positive kwarg in LassoCV and lasso_path (though the latter isn't mentioned in the docstring, it seems). Example of nonnegative lasso_path usage: https://github.com/scikit-learn/scikit-learn/blob/master/examples/linear_model/plot_lasso_coordinate_descent_path.py
The ElasticNet and associated CV-versions also support a nonnegative option.