Thanks for the tip :)
I wonder the saveParamaters could be avoided by using a default list that does nothing - append does nothing -, and pepole could add a container defining a "append" method. That would save a test as well.
Matthieu
On Tue, 27 Feb 2007, Matthieu Brucher apparently wrote:
> Optimizer* optimizer = StandardOptimizer</*some more
> parameters not relevant
> in Python*/(function, GradientStep(), SimpleCriterion(NbMaxIterations),
> step, saveParameters);
> optimizer->optimize();
> optimizer->getOptimalParameters();
Seems like a good approach.
(Put step and saveParameters in a keyword dict.)
Cheers,
Alan Isaac
_______________________________________________
SciPy-user mailing list
SciPy-user@scipy.org
http://projects.scipy.org/mailman/listinfo/scipy-user