GSoC weekly report
hi all, This week I tried to use Matthieu's line-search routines in openopt. I need a good line-search alg that takes into account slope angle, like scipy.optimize.line_search. Unfortunately, that one seems to be obsolete and no maintained any more, noone can (or want) answer about old_fval and old_old_fval parameters (moreover, other ones are not described as well, fortunately I understood them). So, my mailing with Matthieu continues, I hope to solve all the problems raised with connection soon. Also, I began to convert openopt documentation to new standards. There I've got some troubles too, see my post and Charles R Harris answer in scipy dev mail list. rev 3209 contains changes (ticket 285) proposed by Alan Isaac (instead of those ones proposed by the ticket author). Several hours more were elapsed for (as I g\had report) already done ticket 464. The, it turned out that in Nils Wagner numpy 1.0.4dev he has asfarray(matrix([[0.3]])) being matrix, while my numpy 1.0.1 (yesterday I have updated to 1.0.4) yields numpy.ndarray. As for me, I think latter is more correct, I don't know why it was changed in more recent numpy version. Nils have promised to submit a ticket. Regards, D.
On Sat, 04 Aug 2007, dmitrey apparently wrote:
scipy.optimize.line_search. Unfortunately, that one seems to be obsolete and no maintained any more, noone can (or want) answer about old_fval and old_old_fval parameters
1. Please make a distinction between "obsolete" and "not maintained". This is not obsolete and the lack of maintenance reflects its satifactory state (aside from documentation). Please see the example of use in the definition of fmin_bfgs http://svn.scipy.org/svn/scipy/trunk/Lib/optimize/optimize.py 2. Your problem certainly is showing the inadequacy of documentation of this code. However the two old function values are being used to compute an initial step, as documented at http://svn.scipy.org/svn/scipy/trunk/Lib/optimize/minpack2/dcsrch.f The documentation there is quite good. The line search code is essentially an interface to the dcsrch code. Cheers, Alan Isaac
On Sat, 04 Aug 2007, dmitrey apparently wrote:
I began to convert openopt documentation to new standards. There I've got some troubles too, see my post and Charles R Harris answer in scipy dev mail list.
This should not slow you down much. Much of the example is fine. Until Charles posts the rewrite, just avoid parameter lists that do not specify the type :Parameters: this : works as expected this : does not work Cheers, Alan Isaac
On Sat, Aug 04, 2007 at 01:56:55PM +0300, dmitrey wrote:
Several hours more were elapsed for (as I g\had report) already done ticket 464. The, it turned out that in Nils Wagner numpy 1.0.4dev he has asfarray(matrix([[0.3]])) being matrix, while my numpy 1.0.1 (yesterday I have updated to 1.0.4) yields numpy.ndarray. As for me, I think latter is more correct, I don't know why it was changed in more recent numpy version. Nils have promised to submit a ticket.
It was changed because Nils filed a ticket against the earlier behaviour. Regards Stéfan
participants (3)
-
Alan G Isaac -
dmitrey -
Stefan van der Walt