Skip to main content

Jupyter-friendly Python frontend for MINUIT2 in C++

Project description

iminuit is a Jupyter-friendly Python interface for 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.6+

  • Supported PyPy versions: 3.6

  • Supported platforms: Linux, OSX and Windows.

In a nutshell

from iminuit import Minuit

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

fcn.errordef = Minuit.LEAST_SQUARES

m = Minuit(fcn, x=0, y=0, z=0)

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

Versions

The current 2.x series has introduced breaking interfaces changes with respect to the 1.x series.

All interface changes are documented in the changelog with recommendations how to upgrade. To keep existing scripts running, pin your major iminuit version to <2, i.e. pip install 'iminuit<2' installs the 1.x series.

Project details


Release history Release notifications | RSS feed

This version

2.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iminuit-2.0.0.tar.gz (339.3 kB view hashes)

Uploaded Source

Built Distributions

iminuit-2.0.0-cp39-cp39-win_amd64.whl (255.3 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

iminuit-2.0.0-cp39-cp39-win32.whl (229.8 kB view hashes)

Uploaded CPython 3.9 Windows x86

iminuit-2.0.0-cp39-cp39-manylinux2010_x86_64.whl (278.6 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

iminuit-2.0.0-cp39-cp39-manylinux2010_i686.whl (290.8 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ i686

iminuit-2.0.0-cp39-cp39-macosx_10_9_x86_64.whl (284.9 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

iminuit-2.0.0-cp38-cp38-win_amd64.whl (255.1 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

iminuit-2.0.0-cp38-cp38-win32.whl (229.8 kB view hashes)

Uploaded CPython 3.8 Windows x86

iminuit-2.0.0-cp38-cp38-manylinux2010_x86_64.whl (278.6 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

iminuit-2.0.0-cp38-cp38-manylinux2010_i686.whl (290.6 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686

iminuit-2.0.0-cp38-cp38-macosx_10_9_x86_64.whl (284.8 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

iminuit-2.0.0-cp37-cp37m-win_amd64.whl (254.9 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

iminuit-2.0.0-cp37-cp37m-win32.whl (230.3 kB view hashes)

Uploaded CPython 3.7m Windows x86

iminuit-2.0.0-cp37-cp37m-manylinux2010_x86_64.whl (283.7 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

iminuit-2.0.0-cp37-cp37m-manylinux2010_i686.whl (297.6 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686

iminuit-2.0.0-cp37-cp37m-macosx_10_9_x86_64.whl (281.5 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

iminuit-2.0.0-cp36-cp36m-win_amd64.whl (254.9 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

iminuit-2.0.0-cp36-cp36m-win32.whl (230.3 kB view hashes)

Uploaded CPython 3.6m Windows x86

iminuit-2.0.0-cp36-cp36m-manylinux2010_x86_64.whl (283.7 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

iminuit-2.0.0-cp36-cp36m-manylinux2010_i686.whl (297.6 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ i686

iminuit-2.0.0-cp36-cp36m-macosx_10_9_x86_64.whl (281.4 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page