lmfit/lmfit-py
Non-Linear Least Squares Minimization, with flexible Parameter settings, based on scipy.optimize, and with many additional classes and methods for curve fitting. observed · 2026-08-28
Health v2 · maintenance only
68/100
- Activity 95
- Release rhythm 16
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 129
- age_days: 5511
- days_rel: 410
- days_push: 30
- n_releases_24m: 2
Adoption not part of the score
1231 stars · 296 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
lmfit is a pure Python library built on SciPy and NumPy for non-linear least-squares minimization and curve fitting. It wraps scipy.optimize with named Parameter objects that support bounds, fixed values, algebraic constraints, and uncertainty estimation.
Use cases
- fit a curve to experimental data with nonlinear least squares
- fit a model with bounded and constrained parameters
- estimate parameter uncertainties and confidence intervals after a fit
- switch fitting algorithms without rewriting the objective function
- fit peak models like Gaussian and Lorentzian to spectra
- constrain one fit parameter as an expression of others
When to choose
- you need curve fitting or nonlinear optimization with named, bounded, or constrained parameters
- you want better confidence interval estimation than raw scipy.optimize provides
- you want a high-level Model API for common fitting shapes
When to avoid
- you need linear regression or simple polynomial fits where numpy.polyfit suffices
- you need general-purpose global optimization unrelated to least squares
- you need machine-learning model training rather than scientific curve fitting
Facets
library · maturity stable
math data-science data-science python cross-platform curve-fitting least-squares optimization scipy parameter-estimation confidence-intervals algorithms scientific-computing
2 sources
- readme: https://github.com/lmfit/lmfit-py · fetched 2026-08-28 · 3d31f9910dc9
- homepage: https://lmfit.github.io/lmfit-py/ · fetched 2026-08-29 · d09e5ef5c6b7
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| lmfit/lmfit-py | main | 68 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem