Constraining the params returned by statsmodels logit to positive values

Viewed 95

As the title suggests I am trying to restrict the params returned by statsmodels logit to positive numbers. So I played around with different methods in scipy.optimise which logit uses and their args like bounds etc but couldn't figure out how I can do this. Any suggestions? Any other module with logistic regression which restricts weights to positive numbers?

0 Answers
Related