[SciPy-user] number of function evaluation for leastsq

Matthieu Brucher matthieu.brucher at gmail.com
Tue Apr 15 17:19:09 EDT 2008


It's a decorator (Python 2.5). It only does :

target_function = memoize_single(target_function)

after the function definition.

Matthieu

2008/4/15, Christian K. <ckkart at hoc.net>:
>
> Pauli Virtanen wrote:
> >
> > @memoize_single
> > def target_function(z):
> >     print "Evaluating..."
> >     z = sp.asarray(z)
> >     return sum(z**2)
>
>
> Sorry for this off-topic questions, but can somebody explain me what
> that @.... syntax means? I searched the python manuals several times
> without luck.
>
> Thanks, Christian
>
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>



-- 
French PhD student
Website : http://matthieu-brucher.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn : http://www.linkedin.com/in/matthieubrucher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20080415/9a131e9b/attachment.html>


More information about the SciPy-User mailing list