SlimFit
SymFit's little brother
Documentation: https://jhsmit.github.io/slimfit/
This project is inspired by SymFit and is functional, to some degree, but in currently in BETA
- Free software: MIT license
Aims
- Inspiration for a potential SymFit 2.0
- Expectation-Maximization likelihood maximization
Quick Start
from sympy import symbols
from slimfit import Model, Fit, Parameter
import numpy as np
y, a, x, b = symbols('y a x b')
model = Model({y: a*x + b})
parameters = [
Parameter(a, guess=2.5),
Parameter(b, guess=1, lower_bound=0.)
]
xdata = np.linspace(0, 11, 25)
ydata = 0.5*xdata + 2.5
ydata += np.random.normal(0, scale= ydata / 10.0 + 0.2)
data = {'x': xdata, 'y': ydata}
fit = Fit(model, parameters, data)
result = fit.execute()
print(result.parameters)
>>> {'a': array(0.47572707), 'b': array(2.6199133)}
Installation
$ pip install slimfit
Metadata
Release files for slimfit 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| slimfit-0.1.4.tar.gz | 1.4 MB | Without provenance | Details for slimfit-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slimfit-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for slimfit-0.1.4-py3-none-any.whl |
Total release size: 1.5 MB
Release files / slimfit-0.1.4.tar.gz
| Download URL | slimfit-0.1.4.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
827ee55cd47839b9954bcdeec124f74609493b967da6961ba2130bc5a210a9c0
|
|
BLAKE2b-256 checksum How to use checksums |
305c6dc50513828e417a8d53d5b6e68bb4311d0fc9ab5b05f74e3b43e4a4d557
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / slimfit-0.1.4-py3-none-any.whl
| Download URL | slimfit-0.1.4-py3-none-any.whl |
|---|---|
| Size | 34.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
baf595aaaafd3826a89448ac66b400fbd88f8535f6f0031f886f7dfd775e0538
|
|
BLAKE2b-256 checksum How to use checksums |
2e726403f2f6c3bf5184b20cc5ce1e63e0e390cfef9b22bbb99a98ffd4a077cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for slimfit 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.