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.
Documentation: http://iminuit.readthedocs.org
License: MINUIT2 is LGPL-2.1 and iminuit is MIT
Citation: https://doi.org/10.5281/zenodo.3949207
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
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
Hashes for iminuit-2.6.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2f8ff8ae574ada42df9b9df98c9d761740786371fedc322ba4ffe8239d1ec20 |
|
MD5 | 6b891d56ae5dfc1a305338cc5e878f12 |
|
BLAKE2b-256 | c55e1819ff714231bb6fa31dd81069a2fb7d56a2d1ef31489938dea3587b5aba |
Hashes for iminuit-2.6.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbe936f78df04f7de8dde6912dabe0eb60fbc8b9aac0af61d7c70916c6bf55d5 |
|
MD5 | 7cdea8602997e54da526626b3a5b6552 |
|
BLAKE2b-256 | 225375531cad1ea13f2a3b3bea7e8ad254281a062e8162bce540db4b990a4f72 |
Hashes for iminuit-2.6.1-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbc547fb088d5d07980acb5eb1d39e286ba4709e9da58a882c3c474b0e10e5fe |
|
MD5 | 0289264e5bbf19c83871c3c20d3a5d04 |
|
BLAKE2b-256 | 2d9250ec74c8d3279095ea916eabc9dbdbc5067ffbb398c61da970f14ea769f7 |
Hashes for iminuit-2.6.1-cp39-cp39-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9020b4d3f773ebd2a643087570f6f070c6c3ed8b6f43b8a9cad3b2450a3772b1 |
|
MD5 | b5b377e2f68d8dc274a86f001fb826c1 |
|
BLAKE2b-256 | 94a8ce676eea7c260502ddd74976ac558676ac2fe43745d624f0df0aa3c6dbb1 |
Hashes for iminuit-2.6.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25b57f1c3bbc3cc77c19de73e2c2279446e0e531a5184f16ced3f4a2128d1d46 |
|
MD5 | c41c9c4ee9193fa1389f92a2b839eb6f |
|
BLAKE2b-256 | a49b5d6acf26736bfa4cd3d17aa22b4c586f89099db4e6e0cfff98aa1dda14e3 |
Hashes for iminuit-2.6.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3867d19b5920666af021f8f52df8fa43af15331497bc7b4f84d630756773f6af |
|
MD5 | a7853a27aa56bdc2c9e0993211b01f21 |
|
BLAKE2b-256 | 8cebb634348510060d8d1eee91c8c79e9bbc7d53519a67586a20bf6fa14c4f35 |
Hashes for iminuit-2.6.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66195efd9e526d935f0ef76a0a1f67566d465014f15d2c7d5534a8e96d329b85 |
|
MD5 | cc737145a9b29757471a3e0df71cde58 |
|
BLAKE2b-256 | 4aa6825170d9835c403a2fefdd272acc34c01d7bcc0795cf7641d9134153cecc |
Hashes for iminuit-2.6.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42303778bcad64abfe8a5c21bfed4297551c48c44ccc054e8cf6d65547032247 |
|
MD5 | e963325008ca47a907dadaf61acc59c4 |
|
BLAKE2b-256 | c2c80f6ddd099ee6c7ba4344127055248b13507e611ff1bc7fb2dd020bd18ce8 |
Hashes for iminuit-2.6.1-cp38-cp38-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19d310db52d7a2e091b160de25fcf01464390cce2bbb7984ef757aa948d4753d |
|
MD5 | bc2ada128c731fa30b9eff052abe8810 |
|
BLAKE2b-256 | 0ebd516ebd12a1a35173c356d71cada560d4bb268f117a95201efe3c73e56224 |
Hashes for iminuit-2.6.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf7c2f792cb44278ed3b37dbc1b6b3df39587012a1de08ed56b9a85263d7d4e7 |
|
MD5 | c87453f8523be5283e1595a39f97e958 |
|
BLAKE2b-256 | 9ba9ed2e3dfa3997441448f9f46ff3144454b753e2d7dbe2373d73e11f2f63ee |
Hashes for iminuit-2.6.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a5adc20d0b89224b19c938d2d02323ba690bd221c6b3c26da816eb5dcbb873e |
|
MD5 | 3fa5f83a46c4853534b8394c7c145742 |
|
BLAKE2b-256 | 953881a15bcb883e1dec26689692698409f790b8d733fbe176104012270a3f60 |
Hashes for iminuit-2.6.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 435db6ba75c32bc01a10ccdf51c52229f8566bf463c4dcc78dacb0984718cde6 |
|
MD5 | 7cfb22c5e9057ff8e4ad674cea383173 |
|
BLAKE2b-256 | 9827976e56cda3a09465ed05d431c986612ee9553d4b6feaeb4f2d72024c7fac |
Hashes for iminuit-2.6.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37b2c0025623559720f5689234c3da6cf85c8251ed18f893e1704211b3006675 |
|
MD5 | 6d51d37e31d22a2611f5c572938f6890 |
|
BLAKE2b-256 | f10b7aaec01b8eaa682ab164ffe2221187f9ffb231880b35600f7b68f1f75fe9 |
Hashes for iminuit-2.6.1-cp37-cp37m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b267876cf9db58400929289017936d8dbc2a3e8caf4df7cdf84caca684ee9dd0 |
|
MD5 | 6644de43db4d30500cd9588c21806345 |
|
BLAKE2b-256 | c37e5b0e35b62bcbbe6c1da9c74d18521f535f4111201eb3afae2f1e7aee5cdd |
Hashes for iminuit-2.6.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 335a87c39d7fb6ab8ad27fb101d397e21b4df276be9c93a7c2c28568c139b8e8 |
|
MD5 | 3afef8317bb21ac39df8fe35f7ec8005 |
|
BLAKE2b-256 | 1a660a3043101b098d15a09f1f7773db5e302b9cd9d3fd840008ddcb34ebd3e5 |
Hashes for iminuit-2.6.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cc733332ad3ac3007ab67e9359c627b1570fe85f9f340953147e76b98c6a8e9 |
|
MD5 | 57a12e5749304ded5b919383fc55ab30 |
|
BLAKE2b-256 | e8f2233c35dd7e7acaf08cb2fdb22f555fb7c6e9fbbc2ad2cbf25a2ff50de0d0 |
Hashes for iminuit-2.6.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60a52a94d28bf2fadaca30b430468fc42f3c9779a5fb6d12fa92173c2e5aab6d |
|
MD5 | b0fc4d558b10f2f5d44b952baa1cb981 |
|
BLAKE2b-256 | 078a25533410facc4b2670b2b4f6a864a3c5b93402876127bb7a0b1b667e6ed7 |
Hashes for iminuit-2.6.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc2b358ca3106a55ca70c9af99eea30c16cc2c08a483acbd5d6e1c2987e45f22 |
|
MD5 | 38f9b9211b12456a0dc1d3483989285a |
|
BLAKE2b-256 | 5f07996ddfef19892e95986af6f6cfe6584fe59ddb13dab0aafc34dd1e3e9e91 |
Hashes for iminuit-2.6.1-cp36-cp36m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f6920e3ab3aa8779ba6fbc43d5eea55844525c09eef917fe746ad6b5c714fd8 |
|
MD5 | 821856fcd06794bcb96de6296e6667fb |
|
BLAKE2b-256 | eac11a8b62c6bb94cb6ef846db2a045615e321e1bd73951e488035b0cfe2f279 |
Hashes for iminuit-2.6.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27d075aa015770092e1d40b685342631caa5b8e988bceb246ed87b8c8e6fb5d4 |
|
MD5 | fb113f03c3a5dc0295d131d4cec53ea7 |
|
BLAKE2b-256 | 41c44d1e33e7d1eaeea143cd43ded8db48e7ae1af1286f28799e2c72bb8c9a0a |