Closed Jhsmit closed 6 years ago
In my experience Gaussian and ODE models are indeed extremely sensitive to the initial guess. I would also not be surprised if the chosen algorithm (and meta-parameters) has a major influence on this. Good catch on the example though! Make a PR to fix it ;)
As far as I'm concerned there's a major code refactor pending, after which it should be possible to easily add a few global optimization methods --- which would solve this in a very permanent fashion.
update: in python 3.5 the fitting sometimes works due to the random nature of the data.
When running the file
examples/gaussian.py
the fit is not successful.Python 2.7 symfit v 0.3.6
Python 3.5 symfit v 0.3.5:
The problem can be fixed by providing an accurate guess for the
A
parameter, by changing line11
toA = Parameter(value=300)
, however when the guess if too far off the fitting fails (already when `value=200').