lmfit-py icon indicating copy to clipboard operation
lmfit-py copied to clipboard

Non-Linear Least Squares Minimization, with flexible Parameter settings, based on scipy.optimize, and with many additional classes and methods for curve fitting.

Results 15 lmfit-py issues
Sort by recently updated
recently updated
newest added

#### Description This adds the Pearson4 fit model (original version from Wikipedia), which is a skewed version of Pearson7. ###### Type of Changes - [ ] Bug fix - [x]...

#### First Time Issue Code Extending the fit statistic by including the [R2-Statistic](https://en.wikipedia.org/wiki/Coefficient_of_determination) #### Description ###### A Minimal, Complete, and Verifiable example Could be implemented here: https://github.com/lmfit/lmfit-py/blob/e54a44c68f9cb40836b9aca5398436f4f2b20b15/lmfit/minimizer.py#L358-L380 ###### Version information...

#### Description This adds the Pearson4 fit model, which is a skewed version of Pearson7. ###### Type of Changes - [ ] Bug fix - [x] New feature - [...

The CI calculation now uses the root_scalar interface for root finding and changes the default method to toms748. Additonally, caching of probabilties is now used to speed up the calculation....

#### Description ModelResult caches the result of conf_inveral(), but it does not check if the kwargs are identical. ```python mod = LmfitModel() res = mod.fit(data) res.conf_interval() # oh no, maxiter...

#### First Time Issue Code Yes, I read the instructions and I am sure this is a GitHub Issue. #### Description If parameters have been saved to file using Parameters.dump()...

Fitting with `emcee` works poorly. Poorly enough that claiming to have an `emcee` "solver" that can be used to solve minimization problems is kind of a disservice to our users....

#### Description See https://stackoverflow.com/questions/69683599/calculate-the-uncertainty-in-components-of-composite-model-in-lmfit/69716796#69716796 A request was made to be able to calculate the uncertainties in sub-models of composite models. I think that is a reasonable request and probably not...

#### Description The Debian auto-builders on ppc64el architecture were running into an error with Python3.9. This is reported in a [bug report](https://bugs.debian.org/976952). ###### Error message: =================================== FAILURES =================================== _________________ TestUserDefiniedModel.test_model_nan_policy...

The two similar classes `MinimizerResult` and `ModelResult` inherit from different objects (the former from `object` the latter from `Minimizer`). Also the `MinimizerResult` doc states: ``` Notes ----- Additional attributes not...