All Projects → tBuLi → Symfit

tBuLi / Symfit

Licence: gpl-2.0
Symbolic Fitting; fitting as it should be.

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Symfit

Eulerian Remote Heartrate Detection
Remote heart rate detection through Eulerian magnification of face videos
Stars: ✭ 48 (-71.26%)
Mutual labels:  scipy
Credit Risk Modelling
Credit Risk analysis by using Python and ML
Stars: ✭ 91 (-45.51%)
Mutual labels:  scipy
Ml Cheatsheet
A constantly updated python machine learning cheatsheet
Stars: ✭ 136 (-18.56%)
Mutual labels:  scipy
Scipy
SciPy library main repository
Stars: ✭ 8,942 (+5254.49%)
Mutual labels:  scipy
Docker Alpine Python Machinelearning
Small Docker image with Python Machine Learning tools (~180MB) https://hub.docker.com/r/frolvlad/alpine-python-machinelearning/
Stars: ✭ 76 (-54.49%)
Mutual labels:  scipy
Pooch
A friend to fetch your data files.
Stars: ✭ 101 (-39.52%)
Mutual labels:  scipy
Numpycpp
A c++ header library for matrix operation inspired Numpy Scipy, MATLAB only using Eigen.
Stars: ✭ 30 (-82.04%)
Mutual labels:  scipy
Piecewise linear fit py
fit piecewise linear data for a specified number of line segments
Stars: ✭ 141 (-15.57%)
Mutual labels:  scipy
Ghpythonremote
A two-way connector to use regular Python from IronPython in Rhino/Grasshopper, and vice-versa.
Stars: ✭ 85 (-49.1%)
Mutual labels:  scipy
Optimization Python
General optimization (LP, MIP, QP, continuous and discrete optimization etc.) using Python
Stars: ✭ 133 (-20.36%)
Mutual labels:  scipy
Dask
Parallel computing with task scheduling
Stars: ✭ 9,309 (+5474.25%)
Mutual labels:  scipy
Harmonica
Forward modeling, inversion, and processing gravity and magnetic data
Stars: ✭ 75 (-55.09%)
Mutual labels:  scipy
Python Speech recognition
A simple example for use speech recognition baidu api with python.
Stars: ✭ 106 (-36.53%)
Mutual labels:  scipy
Ncar Python Tutorial
Numerical & Scientific Computing with Python Tutorial
Stars: ✭ 50 (-70.06%)
Mutual labels:  scipy
Nptdms
NumPy based Python module for reading TDMS files produced by LabView
Stars: ✭ 138 (-17.37%)
Mutual labels:  scipy
Mlcourse.ai
Open Machine Learning Course
Stars: ✭ 7,963 (+4668.26%)
Mutual labels:  scipy
Numba Scipy
numba_scipy extends Numba to make it aware of SciPy
Stars: ✭ 98 (-41.32%)
Mutual labels:  scipy
Scipy con 2019
Tutorial Sessions for SciPy Con 2019
Stars: ✭ 142 (-14.97%)
Mutual labels:  scipy
Data Analysis
主要是爬虫与数据分析项目总结,外加建模与机器学习,模型的评估。
Stars: ✭ 142 (-14.97%)
Mutual labels:  scipy
Studybook
Study E-Book(ComputerVision DeepLearning MachineLearning Math NLP Python ReinforcementLearning)
Stars: ✭ 1,457 (+772.46%)
Mutual labels:  scipy

.. image:: https://zenodo.org/badge/24005390.svg :target: https://zenodo.org/badge/latestdoi/24005390 .. image:: https://coveralls.io/repos/github/tBuLi/symfit/badge.svg?branch=master :target: https://coveralls.io/github/tBuLi/symfit?branch=master

Please cite this DOI if symfit benefited your publication. Building this has been a lot of work, and as young researchers your citation means a lot to us. Martin Roelfs & Peter C Kroon, symfit. doi:10.5281/zenodo.1133336

Documentation

http://symfit.readthedocs.org

Project Goals

The goal of this project is simple: to make fitting in Python pythonic. What does pythonic fitting look like? Well, there's a simple test. If I can give you pieces of example code and don't have to use any additional words to explain what it does, it's pythonic.

.. code-block:: python

from symfit import parameters, variables, Fit, Model import numpy as np

xdata = np.array([1.0, 2.0, 3.0, 4.0, 5.0]) ydata = np.array([2.3, 3.3, 4.1, 5.5, 6.7]) yerr = np.array([0.1, 0.1, 0.1, 0.1, 0.1])

a, b = parameters('a, b') x, y = variables('x, y') model = Model({y: a * x + b})

fit = Fit(model, x=xdata, y=ydata, sigma_y=yerr) fit_result = fit.execute()

Cool right? So now that we have done a fit, how do we use the results?

.. code-block:: python

import matplotlib.pyplot as plt

yfit = model(x=xdata, **fit_result.params)[y] plt.plot(xdata, yfit) plt.show()

.. figure:: http://symfit.readthedocs.org/en/latest/_images/linear_model_fit.png :width: 600px :alt: Linear Fit

Need I say more? How about I let another code example do the talking?

.. code-block:: python

from symfit import parameters, Fit, Equality, GreaterThan

x, y = parameters('x, y') model = 2 * x * y + 2 * x - x2 - 2 * y2 constraints = [ Equality(x**3, y), GreaterThan(y, 1), ]

fit = Fit(- model, constraints=constraints) fit_result = fit.execute()

I know what you are thinking. "What if I need to fit to a system of Ordinary Differential Equations?"

.. code-block:: python

from symfit import variables, Parameter, ODEModel, Fit, D import numpy as np

tdata = np.array([10, 26, 44, 70, 120]) adata = 10e-4 * np.array([44, 34, 27, 20, 14])

a, b, t = variables('a, b, t') k = Parameter('k', 0.1)

model_dict = { D(a, t): - k * a2, D(b, t): k * a2, }

ode_model = ODEModel(model_dict, initial={t: 0.0, a: 54 * 10e-4, b: 0.0})

fit = Fit(ode_model, t=tdata, a=adata, b=None) fit_result = fit.execute()

For more fitting delight, check the docs at http://symfit.readthedocs.org.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].