Curve fit fails with exponential but zunzun gets it right

后端 未结 2 472
-上瘾入骨i
-上瘾入骨i 2021-01-07 01:44

I\'m trying to compute the best fit of two forms of an exponential to some x, y data (the data file can be downloaded from here)

Here\'s the code:

2条回答
  •  没有蜡笔的小新
    2021-01-07 02:07

    Zunzun.com uses the Differential Evolution genetic algorithm (DE) to find initial parameter estimates which are then passed to the Levenberg-Marquardt solver in scipy. DE is not actually used as a global optimizer per se, but rather as an "initial parameter guesser".

    You can find links to the BSD-licensed Python source code for the zunzun.com fitter at the bottom of any of the site's web pages - it has many comprehensive examples - so there is no immediate need to code it yourself. Let me know if you have any questions and I'll do my best to help.

    James Phillips zunzun@zunzun.com

提交回复
热议问题