What is the purpose of positive parameter in sklearn.linear_model.ElasticNet?
I saw this parameter in the sklearn.linear_model.ElasticNet
.
What is the purpose of this? What is the possible scenario where we want to force the coefficients to be positive? How is this achieved? Doesn't it affect model performance?
positive : bool, default=False
When set toTrue
, forces the coefficients to be positive.
Topic elastic-net regularization scikit-learn machine-learning
Category Data Science