pyminuit

Python curve fit library that allows me to assign bounds to parameters

家住魔仙堡 提交于 2019-11-27 20:50:32
I'd like to be able to perform fits that allows me to fit an arbitrary curve function to data, and allows me to set arbitrary bounds on parameters, for example I want to fit function: f(x) = a1(x-a2)^a3\cdot\exp(-\a4*x^a5) and say: a2 is in following range: (-1, 1) a3 and a5 are positive There is nice scipy curve_fit function, but it doesn't allow to specify parameter bounds. There also is nice http://code.google.com/p/pyminuit/ library that does generic minimalization, and it allows to set bounds on parameters, but in my case it did not coverge. Note: New in version 0.17 of SciPy Let's

Python curve fit library that allows me to assign bounds to parameters

断了今生、忘了曾经 提交于 2019-11-26 22:54:49
问题 I'd like to be able to perform fits that allows me to fit an arbitrary curve function to data, and allows me to set arbitrary bounds on parameters, for example I want to fit function: f(x) = a1(x-a2)^a3\cdot\exp(-\a4*x^a5) and say: a2 is in following range: (-1, 1) a3 and a5 are positive There is nice scipy curve_fit function, but it doesn't allow to specify parameter bounds. There also is nice http://code.google.com/p/pyminuit/ library that does generic minimalization, and it allows to set