[SciPy-dev] scipy.optimize
Jonathan Taylor
jonathan.taylor at utoronto.ca
Mon May 1 10:45:47 EDT 2006
> > Yes. logging is particularly requested quite often. As for
> > configuration parameters, I suspect that it is best done by making a
> > nice object-based interface to the optimization routines. I'm not sure
> > what the benefit is of passing in a configuration object over simply
> > using keyword arguments.
>
> Well, I have nothing against keyword arguments. But with a configuration
> object, the function argument list would be smaller, all fmin_*
> functions could have the same syntax and new configuration options would
> not influence the argument list.
Maybe I misunderstood, but you can just use **dict to send config options.
d = {}
d["opt1"] = 'foo'
d["opt2"] = 'bar'
d["num"] = 3
func(**d)
J.
More information about the SciPy-Dev
mailing list