Re: Fitting/minimizing Python functions.

From: Brett Viren <bv_at_bnl.gov>
Date: Tue, 28 Feb 2012 15:49:37 -0500


Hi Wim,

<wlavrijsen_at_lbl.gov> writes:

> Brett,
>
>> * ROOT has a copy of the C++ rewrite, Minuit2. In principle this would
>> give a more "pythonic" interface but currently requires subclassing
>> from C++ so is apparently a non-starter for Python functions (?)
>
> there are TPyMultiGenFunction and TPyMultiGradFunction to serve as bases.
>
>> * There is ROOT.Fit.Fitter() but it won't accept a Python function (?)
>
> It should: Fit::Fitter::FitFCN() is pythonized to accept python functions.

Okay, it looks like I am a victim of our experiment's too-old ROOT as TPyMulti* d.n.e. and FitFCN(mypyfunc) fails to "convert argument 1". I'll try v5.32 and lobby for an upgrade if all goes well.

Thanks,
-Brett.

Received on Tue Feb 28 2012 - 21:49:45 CET

This archive was generated by hypermail 2.2.0 : Tue Feb 28 2012 - 23:50:01 CET