Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jhsmit/slimfit
Symfit's little brother
https://github.com/jhsmit/slimfit
Last synced: about 1 month ago
JSON representation
Symfit's little brother
- Host: GitHub
- URL: https://github.com/jhsmit/slimfit
- Owner: Jhsmit
- License: mit
- Created: 2022-11-15T15:39:13.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-12T11:07:14.000Z (5 months ago)
- Last Synced: 2024-10-05T00:13:41.233Z (about 2 months ago)
- Language: Python
- Homepage: https://jhsmit.github.io/slimfit/
- Size: 3.91 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
# SlimFit
**SymFit's little brother**
Documentation: https://jhsmit.github.io/slimfit/
This project is inspired by [SymFit](https://github.com/tBuLi/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
```python
from sympy import symbols
from slimfit import Model, Fit, Parameter
import numpy as npy, 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
------------```console
$ pip install slimfit
```