sigmoidal regression with scipy, numpy, python, etc

后端 未结 4 1580
生来不讨喜
生来不讨喜 2021-01-30 07:15

I have two variables (x and y) that have a somewhat sigmoidal relationship with each other, and I need to find some sort of prediction equation that will enable me to predict th

4条回答
  •  生来不讨喜
    2021-01-30 07:46

    I don't think you're going to get good results with a polynomial fit of any degree -- since all polynomials go to infinity for sufficiently large and small X, but a sigmoid curve will asymptotically approach some finite value in each direction.

    I'm not a Python programmer, so I don't know if numpy has a more general curve fitting routine. If you have to roll your own, perhaps this article on Logistic regression will give you some ideas.

提交回复
热议问题