In the package sklearn
available here - Github/Sklearn we see linear_model
module which is very well used for logistic regression
ML problems. I'm successful in implementing that for datasets, decision boundary of which can be separated by a straight line. But the question is how can one implement logisitc regression for non-linear models
.
I tried searching the library (in the above guithub link) if it contains any relevant module, but couldn't. Is there a way to deal with non-linear problems from sklearn? (apart from clustering algorithms) Are there any other library to help with non-linear regression ? Suggestions are welcome.
One way you can do it is adding the non-linear features you think you'll need to your data set. For example if you think quadratic terms in one variable will help (they'll let you fit orthogonal ellipses), then append x^2, y^2, ... columns to your data matrix of x, y, ... . Then run linear methods on this.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.