Skip to main content

PyQt-Fit

PyQt-Fit is a regression toolbox in Python with simple GUI and graphical tools to check your results. It currently handles regression based on user-defined functions with user-defined residuals (i.e. parametric regression) or non-parametric regression, either local-constant or local-polynomial, with the option to provide your own. There is also a full-GUI access, that currently provides an interface only to parametric regression.

The GUI for 1D data analysis is invoked with:

$ pyqt_fit1d.py

PyQt-Fit can also be used from the python interpreter. Here is a typical session:

>>> import pyqt_fit
>>> from pyqt_fit import plot_fit
>>> import numpy as np
>>> from matplotlib import pylab
>>> x = np.arange(0,3,0.01)
>>> y = 2*x + 4*x**2 + np.random.randn(*x.shape)
>>> def fct(params, x):
...     (a0, a1, a2) = params
...     return a0 + a1*x + a2*x*x
>>> est = pyqt_fit.CurveFitting(x, y, p0=(0,1,0), function=fct)
>>> est.fit() # Find the optimal parameters
>>> result = plot_fit.fit_evaluation(est, x, y)
>>> print(est(x)) # Display the estimated values
>>> plot_fit.plot1d(result)
>>> pylab.show()

PyQt-Fit is a package for regression in Python. There are two set of tools: for parametric, or non-parametric regression.

For the parametric regression, the user can define its own vectorized function (note that a normal function wrappred into numpy's "vectorize" function is perfectly fine here), and find the parameters that best fit some data. It also provides bootstrapping methods (either on the samples or on the residuals) to estimate confidence intervals on the parameter values and/or the fitted functions.

The non-parametric regression can currently be either local constant (i.e. spatial averaging) in nD or local-polynomial in 1D only. The bootstrapping function will also work with the non-parametric regression methods.

The package also provides with four evaluation of the regression: the plot of residuals vs. the X axis, the plot of normalized residuals vs. the Y axis, the QQ-plot of the residuals and the histogram of the residuals. All this can be output to a CSV file for further analysis in your favorite software (including most spreadsheet programs).

Release Notes

Version 1.4.0 is now using QtPy to abstract PySide or PyQt and Python 3.6.

Version 1.3.0 is not fully compatible with previous versions. Although the interfaces offer better flexibility, it will require some code change.

Metadata

Release files for PyQt-Fit 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyQt-Fit 1.4.0
File Size Uploaded
PyQt-Fit-1.4.0.tar.gz 105.0 kB Details

Release files / PyQt-Fit-1.4.0.tar.gz

Download URL PyQt-Fit-1.4.0.tar.gz
Size 105.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d1e45752c32d8a1435b9f38fe8f16bbea0f546b9fa59ec4fcb95da9335a769fc
BLAKE2b-256 checksum
How to use checksums
bd261679b81e3ca65aa955d91f57c2bd9fca7e05cb1b65bcc7d464961056e296
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.3.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

Release history Release notifications | RSS feed

This release

1.4.0 This release

1 release file

1.3.4

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.5

1 release file

1.2.4

1 release file

1.2.3

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.17

1.1.16

1 release file

1.1.15

1 release file

1.1.14

1.1.13

1.1.12

1.1.11

1.1.10

1.1.9

1.1.8

1.1.7

1.1.6

1.1.5

1.1.4

1.1.3

1.1.2

1.1.1

1.1.0

1.0.23

1.0.21

1.0.20

1.0.19

1.0.16

1.0.15

1.0.14

1.0.13

1.0.11

1.0.10

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page