commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles <gil...@harfang.homelinux.org>
Subject Re: [math] LevenbergMarquardt Evaluation Lazy vs. Unlazy
Date Thu, 04 Feb 2016 22:13:43 GMT
On Thu, 4 Feb 2016 14:10:39 -0600, Ole Ersoy wrote:
> Hi,
>
> Has anyone performed any benchmarking on lazy vs. unlazy
> Evaluation(s)

Someone did:
   https://issues.apache.org/jira/browse/MATH-1128

> or is there some obvious criteria on when to use one vs.
> the other?  I only see getResiduals() being called once in the
> optimize() method right after a new evaluation is created:
>
>                 current = problem.evaluate(new
> ArrayRealVector(currentPoint));
>                 currentResiduals = current.getResiduals().toArray();
>
> Thoughts?

The problem is "getJacobian()", called only in the outer loop.
Method "evaluate" is also called in an inner loop where only
the residuals are used.

Gilles

>
> TIA,
> Ole
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message