l-althueser / iminuit

Jupyter-friendly Python interface for C++ MINUIT2

Home Page:https://iminuit.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iminuit

Scikit-HEP project package https://dev.azure.com/scikit-hep/iMinuit/_apis/build/status/scikit-hep.iminuit?branchName=master Documentation Status

iminuit is a Jupyter-friendly Python frontend to the MINUIT2 C++ library.

It can be used as a general robust function minimisation method, but is most commonly used for likelihood fits of models to data, and to get model parameter error estimates from likelihood profile analysis.

  • Supported CPython versions: 3.5+
  • Supported PyPy versions: 3.5, 3.6
  • Supported platforms: Linux, OSX and Windows.

In a nutshell

from iminuit import Minuit

def f(x, y, z):
    return (x - 2) ** 2 + (y - 3) ** 2 + (z - 4) ** 2

m = Minuit(f)

m.migrad()  # run optimiser
print(m.values)  # {'x': 2,'y': 3,'z': 4}

m.hesse()   # run covariance estimator
print(m.errors)  # {'x': 1,'y': 1,'z': 1}

About

Jupyter-friendly Python interface for C++ MINUIT2

https://iminuit.readthedocs.io

License:Other


Languages

Language:Jupyter Notebook 73.6%Language:Python 24.6%Language:C++ 1.4%Language:Shell 0.2%Language:Makefile 0.2%