I Need A Python Function That Can Fit A Curve Within A Parameter Space
I've been working on a project that uses SciPy's optimize.curve_fit() function to fit a curve to some data by varying 3 parameters, which has been working well. However, I now nee
Solution 1:
It would be helpful to provide more details of what you're trying to do. You might find lmfit (https://lmfit.github.io/lmfit-py) for what you are trying to do. Among other features, lmfit
allows constraining parameters using mathematical expressions depending on other parameters without changing the details of the function used to model the data.
As a simple example, you could have a parameter named a
vary freely, and another parameter b
defined to be 1-sqrt(a)
.
Post a Comment for "I Need A Python Function That Can Fit A Curve Within A Parameter Space"