python 3.3 : scipy.optimize.curve_fit doesn't update the value of point -


i trying fit custom function data points using curve_fit. have tried 1 or 2 free parameters. have used other times. struggling make fit, because algorithm returns initial input values, infinite sigma, no matter initial values are. have tried print internal parameters custom function called, , don't understand, custom function called 4 times, first 3 same parameters , last relative change of parameter of 10^-8. doesn't right

it normal objective function called small (roughly 1e-8) changes in parameter values in order calculate partial derivatives decide way go in parameter space. if result of objective function not change @ (not @ 1e-8 level) fit give up: changing parameter values did not change result.

i first whether result of objective function sensitive parameters. if changes result not sensitive 1e-8 change, sensitive larger change, may want increase value of epsfcn passed scipy.optimize.leastsq.


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -