[Insight-users] Iteration Monitoring for LBFGSB optimization method

BeneSchu benedikt.schuler at umit.at
Mon Oct 20 05:32:51 EDT 2008


hi,

the problem with the zeros of the optimizer->GetValue is solving with the
->GetCachedValue, but do you know how I can get only one value of each
iteration (with optimizer->GetCurrentIteration), is there also a method like
->GetCachedCurrentIteration ?

for example:

Starting Registration
0   0   0
0   0   0
0   0   0.000960382
1   0   0.000960382
1   0   0.00139707

the output I want:

Starting Registration

0   0.345   0.000960382
1   0.453   0.000960382

Could anyone give me some tipps?
Thanks!

Bene




Youbing wrote:
> 
> Hi all,
> 
> I am learning how to use LBFGSB (itk::LBFGSOptimizer.h). I ran the example
> "DeformableRegistration8.cxx" and found all current value of the cost
> function are zero (shown below). The three values correspond to iteration
> number, current cost function value, and InfinityNormOfProjectedGradient.
> 
> Starting Registration
> 0   0   0
> 0   0   0
> 0   0   0.000960382
> 1   0   0.000960382
> 1   0   0.00139707
> 2   0   0.00139707
> 2   0   0.00139707
> 2   0   0.00139707
> 2   0   0.00100493
> 3   0   0.00100493
> 3   0   0.00100493
> 3   0   0.00100493
> 3   0   0.00100493
> 3   0   0.00100493
> 3   0   0.00100493
> 3   0   0.00100493
> 
> The itk version I used is "InsightToolkit_2_25_2008", not the released
> version. Is it caused by the itk version? Could anyone give me some hints?
> Thanks!
> 
> Youbing
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Iteration-Monitoring-for-LBFGSB-optimization-method-tp16664875p20015636.html
Sent from the ITK - Users mailing list archive at Nabble.com.



More information about the Insight-users mailing list