Skip to main content

Interactive Minimization Tools based on MINUIT

Project description

iminuit

Interactive IPython Friendly Mimizer based on SEAL Minuit. (It’s included in the package no need to install it separately)

It is designed from ground up to be fast, interactive and cython friendly. iminuit extract function signature very permissively starting from checking func_code down to last resort of parsing docstring(or you could tell iminuit to stop looking and take your answer). The interface is inspired heavily by PyMinuit and the status printout is inspired by ROOT Minuit. iminuit is mostly compatible with PyMinuit(with few exceptions). Existing PyMinuit code can be ported to iminuit by just changing the import statement.

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.migrads()
print m.values #{'x':2,'y':3,'z':4}
print m.errors

Install

python setup.py install

or from pip:

pip install iminuit

Tutorial

All the tutorials are in tutorial directory. You can view it online too.

Documentation

http://iminuit.github.com/iminuit/

You can help

Github allows you to contribute to this project very easily just fork the repository, make changes and submit a pull request.

Here is some areas you can help.

  • Documentation. Tell us what’s missing, what’s incorrect or misleading. Look at doc directory and gh-pages branch. I’m the one who wrote the package, so I know how it works in detail. I might have skipped something important in documentation.

  • HTML output looks ugly. Yah.. I’m lazy. Please help me change it.

  • Test test test. This package is realtively your there might be some kinks to it let me know how you broke it.

  • Performance. I you are a C/cython/python hacker go ahead and make it faster.

  • Console output could use some color.

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

iminuit-1.0.1.tar.gz (642.1 kB view details)

Uploaded Source

File details

Details for the file iminuit-1.0.1.tar.gz.

File metadata

  • Download URL: iminuit-1.0.1.tar.gz
  • Upload date:
  • Size: 642.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for iminuit-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5504ebb5e8383c9b096b4b4f9be611a4965548e32003e10b51aa3452c1eab616
MD5 20736113b8e972122b448df9c044e892
BLAKE2b-256 fc507aa33173eed0727ee5ec9a67c697430d791442b6a0b42e1423e3ef34e67a

See more details on using hashes here.

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