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.
Minuit was designed to minimise statistical cost functions, for likelihood and least-squares fits of parametric models to data. It provides the best-fit parameters and error estimates from likelihood profile analysis.
Supported CPython versions: 3.6+
Supported PyPy versions: 3.6
Supported platforms: Linux, OSX and Windows.
The iminuit package comes with additional features:
Included cost functions for binned and unbinned maximum-likelihood and (robust) least-squares fits
Support for SciPy minimisers
Numba support (optional)
Checkout the comprehensive list of tutorials that demonstrate these features.
In a nutshell
from iminuit import Minuit
def cost_function(x, y, z):
return (x - 2) ** 2 + (y - 3) ** 2 + (z - 4) ** 2
fcn.errordef = Minuit.LEAST_SQUARES
m = Minuit(cost_function, 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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file iminuit-2.8.0.tar.gz
.
File metadata
- Download URL: iminuit-2.8.0.tar.gz
- Upload date:
- Size: 389.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ce160453e08ffc4f12a9f1f4364e461b0ce4c472048c1a58eeaa46a40af9d56 |
|
MD5 | 5e84ac5f506c5dcc2720086cd0c4c0c4 |
|
BLAKE2b-256 | c64249459bc40b4ed0934dedfba0bb11504cb53cee2b57821a74ddfa5b890b2e |
File details
Details for the file iminuit-2.8.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 303.0 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 023409d657079ca2b7580aac1693d7fe2ca8cf3b1791fc42483cb717fa90bfc6 |
|
MD5 | 051b7f63d2975e3fe5e9030ec5e6ca85 |
|
BLAKE2b-256 | 99fa0775e04a2ea7a2926c8b81d83fd0dfe35538302145088d8aa3debb2f32d8 |
File details
Details for the file iminuit-2.8.0-cp39-cp39-win32.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp39-cp39-win32.whl
- Upload date:
- Size: 264.6 kB
- Tags: CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 000581138cd08b9736c0d8b5c08c5eed8458df11f8ec7fe4c99fba33861ee1d9 |
|
MD5 | 1411824c7c67b1f35ac76affb3b13cef |
|
BLAKE2b-256 | 654ecd64b1bf81b16747d43f8b00ac0c8498caccba2351ab021213b4c281c7fb |
File details
Details for the file iminuit-2.8.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 326.9 kB
- Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5f1cb622c8f29eef995c8332ed5a46dcafc51a281e644fe67b7eceb35f634ae |
|
MD5 | ddacea7f0c8e51af2b8c10db42dd9cdf |
|
BLAKE2b-256 | f0102e4c564fe4911ae622df9113ef70e6bb60f804b9d4cce65c581128e15440 |
File details
Details for the file iminuit-2.8.0-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl
- Upload date:
- Size: 339.6 kB
- Tags: CPython 3.9, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25d214b8ffbe37b6ae29b18e8fcd9c51ab1059e75247e682727a0274e21acefc |
|
MD5 | ce06a580db448931fbf9a174a3550dc9 |
|
BLAKE2b-256 | f062f2ed6548e91cb7e082ca4731bf36cf736797297cbbeb582d19a5c06f8cb1 |
File details
Details for the file iminuit-2.8.0-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 342.7 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea859f3f69398d5ec912dfeed6428b97f6523960f1d1cb27ed74007a9836a537 |
|
MD5 | 73d6100b7d5d223dba7a34ee10678b5c |
|
BLAKE2b-256 | 7b92f91b9b1f506b9095904af83f094882f8435b3cc126b68258448a38be5479 |
File details
Details for the file iminuit-2.8.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 312.5 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9b19c061a96fc63a248f37ca796c6b9740d4394201e0b0ca3e1c315bc9ab0e6 |
|
MD5 | ad5ce4b988ade70eb15e9ef47952b94a |
|
BLAKE2b-256 | 9245e8d19d62db222adea6737a50d72b13a31c256d16a2d8802a7b3c1d9d4e4c |
File details
Details for the file iminuit-2.8.0-cp38-cp38-win32.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp38-cp38-win32.whl
- Upload date:
- Size: 264.6 kB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bbedabcc724a2264129e32dd1a56d76a291ead927cf441452fe58917017d3ef |
|
MD5 | eb8baf70f16ffcb9179cac796ea98b40 |
|
BLAKE2b-256 | 4a6f9ed0a880bfcf0ad135d2c83af08d8b204eba693407208b074f5b7ad4085d |
File details
Details for the file iminuit-2.8.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 326.7 kB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bb7eab43e697bace7c9f1c4716133b3cff6dd784af179a6097d654b23ad6ad2 |
|
MD5 | 8a1966c1d597ff6636d879a84f058448 |
|
BLAKE2b-256 | 99e8667eb147e5f37af96d4259373b11213c6902507323e094f366d48b859dfd |
File details
Details for the file iminuit-2.8.0-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl
- Upload date:
- Size: 339.5 kB
- Tags: CPython 3.8, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b24db0b198df3e97265196e794bb475ee537c480090c6765f879a2c5b83251a0 |
|
MD5 | f4a866fe504277043e7628c23b8a79fa |
|
BLAKE2b-256 | 38eff8e384348f36a3d800f06c74b7b6e1eee12b135ca9fdfae22dfe9b947f45 |
File details
Details for the file iminuit-2.8.0-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 342.7 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b45b1c831bf0b49be063aa1d66faec54d5d667c9e58c6de0708cade1be5f0d8 |
|
MD5 | 7ee8867266f1bd59028efe9c3ceb4588 |
|
BLAKE2b-256 | c8133360827639a54daf5b394ae1f3b612077bb03e60d2bbc8901d2892f1c632 |
File details
Details for the file iminuit-2.8.0-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 311.8 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dac166656f2a47ad4b306b53cf33986b65920a6ce9d0e5abc0fe2b90ae5eee95 |
|
MD5 | 97d3d818f5ac57ffb20cdf05c55fd40b |
|
BLAKE2b-256 | a535ddf603d0d834e7dec22451d0afbda406b354a0b4aa0544b0ee8035964838 |
File details
Details for the file iminuit-2.8.0-cp37-cp37m-win32.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp37-cp37m-win32.whl
- Upload date:
- Size: 267.0 kB
- Tags: CPython 3.7m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f07ee502d2fb74fe107eda83059fa3431475fee22f9270f91988ee394ea5b892 |
|
MD5 | 35c08821865690804a230e73209276eb |
|
BLAKE2b-256 | dfb3f7c74b22ea3f34a557b165d4e6733de099d236e4eb5b6cef425048023a74 |
File details
Details for the file iminuit-2.8.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 332.6 kB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef3e3c708cc7743a6652a00222905da488936e10f1b35c30053b4e447918d7ad |
|
MD5 | 3aef1f671245f11f1e35f85d80b4a3ac |
|
BLAKE2b-256 | 44cbfb01954eb95035a2798aaa4a09b1048a6a858260b2c6f2958f6aae98cb70 |
File details
Details for the file iminuit-2.8.0-cp37-cp37m-manylinux_2_12_i686.manylinux2010_i686.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp37-cp37m-manylinux_2_12_i686.manylinux2010_i686.whl
- Upload date:
- Size: 349.1 kB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8419a74ad784523a4b6a937cfbc22e1b70a352866844111dc02b6ba374ba6efc |
|
MD5 | 4351824eb1ee27be7485bc580b1da178 |
|
BLAKE2b-256 | ee3fa2555455e59ab33388e166b6cee8d93a5c5bc894a72b5e9e387db9382b2d |
File details
Details for the file iminuit-2.8.0-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 337.9 kB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4def12c5304c5ae6b58426517d620557a8a1590cd352999b9c167bf57afe60d4 |
|
MD5 | 8d543940be7e803445ea3476b8273031 |
|
BLAKE2b-256 | 49f022c9d27315a46f63c7e63685fca02eb84712d6d1e7178cd6935b4fbc54de |
File details
Details for the file iminuit-2.8.0-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 311.8 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 717571111feead1626dea0fd63555f3d8375823d18bd60fd8041929892ce4029 |
|
MD5 | d8c2a143d7c399ff3fff2829c848c080 |
|
BLAKE2b-256 | ce628b700f8b6079027c186629206ea2f6645a1afd97cc46c2689e3ccc316bb0 |
File details
Details for the file iminuit-2.8.0-cp36-cp36m-win32.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp36-cp36m-win32.whl
- Upload date:
- Size: 267.1 kB
- Tags: CPython 3.6m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe3d171c0bc7c1be7e556cdb766d7cbe9a455a94bacb4fbf7ce2b600992d6d26 |
|
MD5 | 1fa2e466df7f85cb9e1466337b069ef9 |
|
BLAKE2b-256 | e512d4afe49617e98b84a63928f54b8e0e00416887d9b16a00035fee031f1020 |
File details
Details for the file iminuit-2.8.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 332.7 kB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f648d141e99af3dbbe8de6a1f9487741cacc151087da48c0e8d48bbd2396df4 |
|
MD5 | e3a7aeed959d9612fd3f522063d6b136 |
|
BLAKE2b-256 | 1c2a8d28cc328f960e48191ac100bab97d30cdf542a460f9e86a83d48330b526 |
File details
Details for the file iminuit-2.8.0-cp36-cp36m-manylinux_2_12_i686.manylinux2010_i686.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp36-cp36m-manylinux_2_12_i686.manylinux2010_i686.whl
- Upload date:
- Size: 349.1 kB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b644e0746ecb6235ff1a14c50a7b7bbbb9d2e5bf678db20052c4ef45dfc87009 |
|
MD5 | e2f998913172282a5be164628c50a4d7 |
|
BLAKE2b-256 | dfb89087e1095a58f365f66dca7665770215455b806e81edf43d129c60a1abc2 |
File details
Details for the file iminuit-2.8.0-cp36-cp36m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: iminuit-2.8.0-cp36-cp36m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 337.8 kB
- Tags: CPython 3.6m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d8d7e61cb8d73e4dd17fd3872753333007a40c93542276c2aa1de16d63ac1a0 |
|
MD5 | 4f1ab15e712f72bd6eb0d75338ab824f |
|
BLAKE2b-256 | 8f815490e569edc6c2f1c4baaa571a8cb25f6bc2c99fc2b0ec79320fb687f181 |