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 maintained by CERN’s ROOT team.

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.

Download files

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

Files for iminuit, version 2.4.0
Filename, size File type Python version Upload date Hashes
Filename, size iminuit-2.4.0-cp36-cp36m-macosx_10_9_x86_64.whl (317.3 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size iminuit-2.4.0-cp36-cp36m-manylinux2010_i686.whl (332.2 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size iminuit-2.4.0-cp36-cp36m-manylinux2010_x86_64.whl (317.8 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size iminuit-2.4.0-cp36-cp36m-win32.whl (256.1 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size iminuit-2.4.0-cp36-cp36m-win_amd64.whl (282.8 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size iminuit-2.4.0-cp37-cp37m-macosx_10_9_x86_64.whl (317.3 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size iminuit-2.4.0-cp37-cp37m-manylinux2010_i686.whl (332.3 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size iminuit-2.4.0-cp37-cp37m-manylinux2010_x86_64.whl (317.8 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size iminuit-2.4.0-cp37-cp37m-win32.whl (256.2 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size iminuit-2.4.0-cp37-cp37m-win_amd64.whl (282.8 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size iminuit-2.4.0-cp38-cp38-macosx_10_9_x86_64.whl (322.3 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size iminuit-2.4.0-cp38-cp38-manylinux2010_i686.whl (323.5 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size iminuit-2.4.0-cp38-cp38-manylinux2010_x86_64.whl (312.9 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size iminuit-2.4.0-cp38-cp38-win32.whl (254.2 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size iminuit-2.4.0-cp38-cp38-win_amd64.whl (283.6 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size iminuit-2.4.0-cp39-cp39-macosx_10_9_x86_64.whl (322.4 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size iminuit-2.4.0-cp39-cp39-manylinux2010_i686.whl (323.5 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size iminuit-2.4.0-cp39-cp39-manylinux2010_x86_64.whl (313.0 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size iminuit-2.4.0-cp39-cp39-win32.whl (254.2 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size iminuit-2.4.0-cp39-cp39-win_amd64.whl (283.8 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size iminuit-2.4.0.tar.gz (372.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page