Lmfit provides a high-level interface to non-linear optimization and curve fitting problems for Python. Lmfit builds on Levenberg-Marquardt algorithm of scipy.optimize.leastsq(), but also supports most of the optimization methods from scipy.optimize.
Features:
- Using Parameter objects instead of plain floats as variables. A Parameter has a value that can be varied in the fit, fixed, have upper and/or lower bounds. It can even have a value that is constrained by an algebraic expression of other Parameter values.
- Ease of changing fitting algorithms.
- Improved estimation of confidence intervals.
- Improved curve-fitting with the Model class, which allows to turn a function into a model to fit the data.
- Many pre-built models for common lineshapes are included and ready to use.
Commercial Use
Modify
Distribute
Place Warranty
Hold Liable
Use Trademarks
Include Copyright
Include License
These details are provided for information only. No information here is legal advice and should not be used as such.
There are no reported vulnerabilities
30 Day SummaryJun 26 2025 — Jul 26 2025
|
12 Month SummaryJul 26 2024 — Jul 26 2025
|