| 1 | Source: lmfit-py |
| 2 | Maintainer: Debian Science Maintainers <[email protected]> |
| 3 | Uploaders: |
| 4 | Picca Frédéric-Emmanuel <[email protected]>, |
| 5 | Michael Hudson-Doyle <[email protected]>, |
| 6 | Section: science |
| 7 | Build-Depends: |
| 8 | debhelper-compat (= 13), |
| 9 | dh-python, |
| 10 | dh-sequence-numpy3, |
| 11 | dh-sequence-python3, |
| 12 | dh-sequence-sphinxdoc <!nodoc>, |
| 13 | pybuild-plugin-pyproject, |
| 14 | python3-all, |
| 15 | python3-asteval (>= 1.0~), |
| 16 | python3-dill, |
| 17 | python3-ipython <!nodoc>, |
| 18 | python3-nbsphinx <!nodoc>, |
| 19 | python3-numpy (>= 1.19~), |
| 20 | python3-pandas, |
| 21 | python3-pytest <!nocheck>, |
| 22 | python3-pytest-cov <!nocheck>, |
| 23 | python3-scipy (>= 1.6~), |
| 24 | python3-setuptools, |
| 25 | python3-setuptools-scm, |
| 26 | python3-sphinx <!nodoc>, |
| 27 | python3-sphinx-gallery <!nodoc>, |
| 28 | python3-sympy <!nodoc>, |
| 29 | python3-uncertainties (>= 3.2.2~), |
| 30 | Standards-Version: 4.7.2 |
| 31 | Vcs-Browser: https://salsa.debian.org/science-team/lmfit-py |
| 32 | Vcs-Git: https://salsa.debian.org/science-team/lmfit-py.git |
| 33 | Homepage: https://lmfit.github.io/lmfit-py/ |
| 34 | |
| 35 | Package: python3-lmfit |
| 36 | Architecture: all |
| 37 | Section: python |
| 38 | Depends: |
| 39 | python3-asteval (>= 1.0~), |
| 40 | python3-uncertainties (>= 3.2.2~), |
| 41 | ${misc:Depends}, |
| 42 | ${python3:Depends}, |
| 43 | Suggests: |
| 44 | python-lmfit-doc, |
| 45 | Description: Least-Squares Minimization with Constraints (Python 3) |
| 46 | The lmfit Python package provides a simple, flexible interface to |
| 47 | non-linear optimization or curve fitting problems. The package |
| 48 | extends the optimization capabilities of scipy.optimize by replacing |
| 49 | floating pointing values for the variables to be optimized with |
| 50 | Parameter objects. These Parameters can be fixed or varied, have |
| 51 | upper and/or lower bounds placed on its value, or written as an |
| 52 | algebraic expression of other Parameters. |
| 53 | . |
| 54 | The principal advantage of using Parameters instead of simple |
| 55 | variables is that the objective function does not have to be |
| 56 | rewritten to reflect every change of what is varied in the fit, or |
| 57 | what relationships or constraints are placed on the Parameters. This |
| 58 | means a scientific programmer can write a general model that |
| 59 | encapsulates the phenomenon to be optimized, and then allow user of |
| 60 | that model to change what is varied and fixed, what range of values |
| 61 | is acceptable for Parameters, and what constraints are placed on the |
| 62 | model. The ease with which the model can be changed also allows one |
| 63 | to easily test the significance of certain Parameters in a fitting |
| 64 | model. |
| 65 | . |
| 66 | The lmfit package allows a choice of several optimization methods |
| 67 | available from scipy.optimize. The default, and by far best tested |
| 68 | optimization method used is the Levenberg-Marquardt algorithm from |
| 69 | MINPACK-1 as implemented in scipy.optimize.leastsq. This method |
| 70 | is by far the most tested and best support method in lmfit, and much |
| 71 | of this document assumes this algorithm is used unless explicitly |
| 72 | stated. An important point for many scientific analysis is that this |
| 73 | is only method that automatically estimates uncertainties and |
| 74 | correlations between fitted variables from the covariance matrix |
| 75 | calculated during the fit. |
| 76 | . |
| 77 | A few other optimization routines are also supported, including |
| 78 | Nelder-Mead simplex downhill, Powell's method, COBYLA, Sequential |
| 79 | Least Squares methods as implemented in scipy.optimize.fmin, and |
| 80 | several others from scipy.optimize. In their native form, some of |
| 81 | these methods setting allow upper or lower bounds on parameter |
| 82 | variables, or adding constraints on fitted variables. By using |
| 83 | Parameter objects, lmfit allows bounds and constraints for all of |
| 84 | these methods, and makes it easy to swap between methods without |
| 85 | hanging the objective function or set of Parameters. |
| 86 | . |
| 87 | Finally, because the approach derived from MINPACK-1 usin the |
| 88 | covariance matrix to determine uncertainties is sometimes questioned |
| 89 | (and sometimes rightly so), lmfit supports methods to do a brute |
| 90 | force search of the confidence intervals and correlations for sets of |
| 91 | parameters. |
| 92 | . |
| 93 | This is the Python 3 version of the package. |
| 94 | |
| 95 | Package: python-lmfit-doc |
| 96 | Architecture: all |
| 97 | Section: doc |
| 98 | Depends: |
| 99 | libjs-mathjax, |
| 100 | ${misc:Depends}, |
| 101 | ${sphinxdoc:Depends}, |
| 102 | Built-Using: |
| 103 | ${sphinxdoc:Built-Using}, |
| 104 | Multi-Arch: foreign |
| 105 | Description: Least-Squares Minimization with Constraints (Documentation) |
| 106 | The lmfit Python package provides a simple, flexible interface to |
| 107 | non-linear optimization or curve fitting problems. The package |
| 108 | extends the optimization capabilities of scipy.optimize by replacing |
| 109 | floating pointing values for the variables to be optimized with |
| 110 | Parameter objects. These Parameters can be fixed or varied, have |
| 111 | upper and/or lower bounds placed on its value, or written as an |
| 112 | algebraic expression of other Parameters. |
| 113 | . |
| 114 | The principal advantage of using Parameters instead of simple |
| 115 | variables is that the objective function does not have to be |
| 116 | rewritten to reflect every change of what is varied in the fit, or |
| 117 | what relationships or constraints are placed on the Parameters. This |
| 118 | means a scientific programmer can write a general model that |
| 119 | encapsulates the phenomenon to be optimized, and then allow user of |
| 120 | that model to change what is varied and fixed, what range of values |
| 121 | is acceptable for Parameters, and what constraints are placed on the |
| 122 | model. The ease with which the model can be changed also allows one |
| 123 | to easily test the significance of certain Parameters in a fitting |
| 124 | model. |
| 125 | . |
| 126 | The lmfit package allows a choice of several optimization methods |
| 127 | available from scipy.optimize. The default, and by far best tested |
| 128 | optimization method used is the Levenberg-Marquardt algorithm from |
| 129 | MINPACK-1 as implemented in scipy.optimize.leastsq. This method |
| 130 | is by far the most tested and best support method in lmfit, and much |
| 131 | of this document assumes this algorithm is used unless explicitly |
| 132 | stated. An important point for many scientific analysis is that this |
| 133 | is only method that automatically estimates uncertainties and |
| 134 | correlations between fitted variables from the covariance matrix |
| 135 | calculated during the fit. |
| 136 | . |
| 137 | A few other optimization routines are also supported, including |
| 138 | Nelder-Mead simplex downhill, Powell's method, COBYLA, Sequential |
| 139 | Least Squares methods as implemented in scipy.optimize.fmin, and |
| 140 | several others from scipy.optimize. In their native form, some of |
| 141 | these methods setting allow upper or lower bounds on parameter |
| 142 | variables, or adding constraints on fitted variables. By using |
| 143 | Parameter objects, lmfit allows bounds and constraints for all of |
| 144 | these methods, and makes it easy to swap between methods without |
| 145 | hanging the objective function or set of Parameters. |
| 146 | . |
| 147 | Finally, because the approach derived from MINPACK-1 usin the |
| 148 | covariance matrix to determine uncertainties is sometimes questioned |
| 149 | (and sometimes rightly so), lmfit supports methods to do a brute |
| 150 | force search of the confidence intervals and correlations for sets of |
| 151 | parameters. |
| 152 | . |
| 153 | This is the common documentation package. |