Questions tagged [pyminuit]

Minuit numerical function minimization in Python.

PyMinuit is an extension module for Python that passes low-level Minuit functionality to Python functions. Interaction and data exploration is more user-friendly, in the sense that the user is protected from segmentation faults and index errors, parameters are referenced by their names, even in correlation matrices, and Python exceptions can be passed from the objective function during the minimization process. This extension module also makes it easier to calculate Minos errors and contour curves at an arbitrary number of sigmas from the minimum, and features a new N-dimensional scanning utility.

http://code.google.com/p/pyminuit/

6 questions
11
votes
5 answers

Python curve fit library that allows me to assign bounds to parameters

I'd like to be able to perform fits that allows me to fit an arbitrary curve function to data, and allows me to set arbitrary bounds on parameters, for example I want to fit function: f(x) = a1(x-a2)^a3\cdot\exp(-\a4*x^a5) and say: a2 is in…
jb.
  • 20,419
  • 16
  • 91
  • 130
7
votes
1 answer

PyMinuit vs IMinuit

I was looking for a minuit equivalent on Python 2.7 and I found this two variants: PyMinuit and iMinuit. My question is: what's the difference between them? Both uses Seal 1.7.9 Minuit and in a few 2D Gaussian fit tests that I had both brought the…
pekapa
  • 801
  • 1
  • 10
  • 24
6
votes
1 answer

"print_level =-1" doesn't remove all messages

I am succeding fiiting a function with iminuit in python but I can't get rid of the message even with "print_level =-1" or "print_level =0". Here is the minimalist code I use: from iminuit import Minuit m = Minuit(chi2, alpha=1., beta=0.,…
londumas
  • 83
  • 4
2
votes
0 answers

Fitting a function to data using pyminuit

I wrote a Python (2.7) program to evaluate some scientific data. Its main task is to fit this data to a certain function (1). Since this is quite a lot of data the program distributes the jobs (= "fit one set of data") to several cores using…
Marc
  • 21
  • 1
1
vote
1 answer

solve an n-dimensional optimisation problem using iminuit

I woul like to solve an n-dimensional optimisation problem using iminuit. So my approach is the following. I am trying to figure out how to extend this: def f(x,y,z): return (x-1.)**2 + (y-2*x)**2 + (z-3.*x)**2 -1. to a variable "x" that is a…
davrandom
  • 21
  • 8
0
votes
0 answers

Appending special object to the same list from different processes using multiprocessing

I'm trying to parallelize a task using python multiprocessing, but it results that when I need to append a object to a list (In concrete one minuit object from iminuit library) it gives an error "...cannot be converted to a Python object for…