Closed nfhktwrbq closed 2 years ago
Most likely your fit got stuck in a local minimum. There's a few ways out (in order of computational expense):
.value
attribute of parametersDifferentialEvolution
algorithm from scipy.optimize
You can also try switching to a different local optimization algorithm, or setting bounds on your parameters. But that could also hurt.
SLSQP algorithm also suitable for my data
I use default surface fitting like
fit = Fit(model, x=x_data, y=y_data, z=z_data)
with poly model:For some data I get good fit result:
But sometimes fit return bad parameters:
What can be done for resolve this problem?