An open API service indexing awesome lists of open source software.

https://github.com/cdeil/python-model-fit-tutorial

Python modeling and fitting tutorial
https://github.com/cdeil/python-model-fit-tutorial

Last synced: 5 months ago
JSON representation

Python modeling and fitting tutorial

Awesome Lists containing this project

README

          

# Python modeling and fitting tutorial

## Introduction

A hands-on introduction to Python tools and techniques to fit non-linear models to data.

* Use least squares examples, but any other models or cost functions would work very similar.
* Focus on finding optimal parameters (the best fit), not on parameter error estimation or statistical topics.
* Focus on code and tools and how to use it, not the underlying math and theory.

## Setup

To follow along and be able to edit and execute the examples you can do this:

```
git clone https://github.com/cdeil/python-modeling-fitting-tutorial.git
cd python-model-fit-tutorial
conde env create -y -f environment.yml
conda activate py-model-fit
```

Then open up [VSCode](https://code.visualstudio.com/) or [JupyterLab](https://jupyterlab.readthedocs.io/) or whatever you like.

## Tutorials

* 01 - Meet the tools - [01_meet_the_tools.ipynb](01_meet_the_tools.ipynb)
* 02 - Failing fits - [02_failing_fits.ipynb](02_failing_fits.ipynb)
* 03 - Understand the tools - [03_understand_the_tools.ipynb](03_understand_the_tools.ipynb)
* 04 - Complex model example - [04_complex_model_example.ipynb](04_complex_model_example.ipynb)
* 05 - Roll your own - [05_roll_your_own.ipynb](05_roll_your_own.ipynb)
* 06 - Hybrid models - [06_hybrid_models.ipynb](06_hybrid_models.ipynb)