[SciPy-user] number of function evaluation for leastsq

Matthieu Brucher matthieu.brucher@gmail....
Tue Apr 15 16:19:09 CDT 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@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@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://projects.scipy.org/pipermail/scipy-user/attachments/20080415/9a131e9b/attachment.html 


More information about the SciPy-user mailing list