Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <elxPreconditionedStochasticGradientDescent.h>
A gradient descent optimizer with an adaptive gain.
This class is a wrap around the PreconditionedASGDOptimizer class. It takes care of setting parameters and printing progress information. For more information about the optimization method, please read the documentation of the PreconditionedASGDOptimizer class.
This optimizer is very suitable to be used in combination with the Random image sampler, or with the RandomCoordinate image sampler, with the setting (NewSamplesEveryIteration "true"). Much effort has been spent on providing reasonable default values for all parameters, to simplify usage. In most registration problems, good results should be obtained without specifying any of the parameters described below (except the first of course, which defines the optimizer to use).
This optimization method is described in the following references:
[1] Y. Qiao, B.P.F. Lelieveldt, M. Staring An efficient preconditioner for stochastic gradient descent optimization of image registration IEEE Transactions on Medical Imaging, 2019 https://doi.org/10.1109/TMI.2019.2897943
The parameters used in this class are:
Optimizer: Select this optimizer as follows:
(Optimizer "PreconditionedStochasticGradientDescent")
MaximumNumberOfIterations: The maximum number of iterations in each resolution.
example: (MaximumNumberOfIterations 100 100 50)
Default/recommended value: 500. When you are in a hurry, you may go down to 250 for example. When you have plenty of time, and want to be absolutely sure of the best results, a setting of 2000 is reasonable. In general, 500 gives satisfactory results.
MaximumNumberOfSamplingAttempts: The maximum number of sampling attempts. Sometimes not enough corresponding samples can be drawn, upon which an exception is thrown. With this parameter it is possible to try to draw another set of samples.
example: (MaximumNumberOfSamplingAttempts 10 15 10)
Default value: 0, i.e. just fail immediately, for backward compatibility.
AutomaticParameterEstimation: When this parameter is set to "true", many other parameters are calculated automatically: SP_a, SP_alpha, SigmoidMax, SigmoidMin, and SigmoidScale. In the elastix.log file the actually chosen values for these parameters can be found.
example: (AutomaticParameterEstimation "true")
Default/recommended value: "true". The parameter can be specified for each resolution, or for all resolutions at once.
StepSizeStrategy: When this parameter is set to "true", the adaptive step size mechanism described in the documentation of itk::itkPreconditionedASGDOptimizer is used. The parameter can be specified for each resolution, or for all resolutions at once.
example: (StepSizeStrategy "Adaptive")
Default/recommend value: "Adaptive", because it makes the registration more robust. In case of using a RandomCoordinate sampler, with (UseRandomSampleRegion "true"), the adaptive step size mechanism is turned off, no matter the user setting.
MaximumStepLength: Also called . This parameter can be considered as the maximum voxel displacement between two iterations. The larger this parameter, the more aggressive the optimization. The parameter can be specified for each resolution, or for all resolutions at once.
example: (MaximumStepLength 1.0)
Default: mean voxel spacing of fixed and moving image. This seems to work well in general. This parameter only has influence when AutomaticParameterEstimation is used.
SP_a: The gain at each iteration is defined by
.
SP_a can be defined for each resolution.
example: (SP_a 3200.0 3200.0 1600.0)
The default value is 400.0. Tuning this variable for you specific problem is recommended. Alternatively set the AutomaticParameterEstimation to "true". In that case, you do not need to specify SP_a. SP_a has no influence when AutomaticParameterEstimation is used.
SP_A: The gain at each iteration is defined by
.
SP_A can be defined for each resolution.
example: (SP_A 50.0 50.0 100.0)
The default/recommended value for this particular optimizer is 20.0.
SP_alpha: The gain at each iteration is defined by
.
SP_alpha can be defined for each resolution.
example: (SP_alpha 0.602 0.602 0.602)
The default/recommended value for this particular optimizer is 1.0. Alternatively set the AutomaticParameterEstimation to "true". In that case, you do not need to specify SP_alpha. SP_alpha has no influence when AutomaticParameterEstimation is used.
SigmoidMax: The maximum of the sigmoid function ( ). Must be larger than 0. The parameter can be specified for each resolution, or for all resolutions at once.
example: (SigmoidMax 1.0)
Default/recommended value: 1.0. This parameter has no influence when AutomaticParameterEstimation is used. In that case, always a value 1.0 is used.
SigmoidMin: The minimum of the sigmoid function ( ). Must be smaller than 0. The parameter can be specified for each resolution, or for all resolutions at once.
example: (SigmoidMin -0.8)
Default value: -0.8. This parameter has no influence when AutomaticParameterEstimation is used. In that case, the value is automatically determined, depending on the images, metric etc.
SigmoidScale: The scale/width of the sigmoid function ( ). The parameter can be specified for each resolution, or for all resolutions at once.
example: (SigmoidScale 0.00001)
Default value: 1e-8. This parameter has no influence when AutomaticParameterEstimation is used. In that case, the value is automatically determined, depending on the images, metric etc.
SigmoidInitialTime: the initial time input for the sigmoid ( ). Must be larger than 0.0. The parameter can be specified for each resolution, or for all resolutions at once.
example: (SigmoidInitialTime 0.0 5.0 5.0)
Default value: 0.0. When increased, the optimization starts with smaller steps, leaving the possibility to increase the steps when necessary. If set to 0.0, the method starts with with the largest step allowed.
NumberOfGradientMeasurements: Number of gradients N to estimate the average square magnitudes of the exact gradient and the approximation error. The parameter can be specified for each resolution, or for all resolutions at once.
example: (NumberOfGradientMeasurements 10)
Default value: 0, which means that the value is automatically estimated. In principle, the more the better, but the slower. In practice N=10 is usually sufficient. But the automatic estimation achieved by N=0 also works good. The parameter has only influence when AutomaticParameterEstimation is used.
NumberOfJacobianMeasurements: The number of voxels M where the Jacobian is measured, which is used to estimate the covariance matrix. The parameter can be specified for each resolution, or for all resolutions at once.
example: (NumberOfJacobianMeasurements 5000 10000 20000)
Default value: M = max( 1000, nrofparams ), with nrofparams the number of transform parameters. This is a rather crude rule of thumb, which seems to work in practice. In principle, the more the better, but the slower. The parameter has only influence when AutomaticParameterEstimation is used.
NumberOfSamplesForNoiseCompensationFactor: The number of image samples used to compute the 'exact' gradient. The samples are chosen on a uniform grid. The parameter can be specified for each resolution, or for all resolutions at once.
example: (NumberOfSamplesForNoiseCompensationFactor 100000)
Default/recommended: 100000. This works in general. If the image is smaller, the number of samples is automatically reduced. In principle, the more the better, but the slower. The parameter has only influence when AutomaticParameterEstimation is used.
m_NumberOfSamplesForPrecondition: The number of image samples used to compute the gradient for preconditioner. The samples are chosen on a random sampler. The parameter can be specified for each resolution, or for all resolutions at once.
example: (NumberOfSamplesForPrecondition 500000)
Default/recommended: 500000. This works in general. If the image is smaller, the number of samples is automatically reduced. In principle, the more the better, but the slower. The parameter has only influence when AutomaticParameterEstimation is used.
RegularizationKappa: Selects for the preconditioner regularization. The parameter can be specified for each resolution, or for all resolutions at once.
example: (RegularizationKappa 0.9)
Definition at line 178 of file elxPreconditionedStochasticGradientDescent.h.
Data Structures | |
struct | SettingsType |
Public Member Functions | |
void | AdvanceOneStep (void) override |
void | AfterEachIteration (void) override |
void | AfterEachResolution (void) override |
void | AfterRegistration (void) override |
void | BeforeEachResolution (void) override |
void | BeforeRegistration (void) override |
elxClassNameMacro ("PreconditionedStochasticGradientDescent") | |
virtual bool | GetAutomaticParameterEstimation () const |
virtual const char * | GetClassName () const |
virtual const SizeValueType & | GetMaximumNumberOfSamplingAttempts () |
virtual const double & | GetMaximumStepLength () |
virtual const double & | GetRegularizationKappa () |
void | MetricErrorResponse (itk::ExceptionObject &err) override |
void | ResumeOptimization (void) override |
virtual void | SetAutomaticParameterEstimation (bool _arg) |
virtual void | SetMaximumNumberOfSamplingAttempts (SizeValueType _arg) |
virtual void | SetMaximumStepLength (double _arg) |
virtual void | SetRegularizationKappa (double _arg) |
void | StartOptimization (void) override |
Public Member Functions inherited from itk::PreconditionedASGDOptimizer | |
virtual const char * | GetClassName () const |
virtual const ParametersType & | GetPreconditionVector () |
virtual double | GetSigmoidMax () const |
virtual double | GetSigmoidMin () const |
virtual double | GetSigmoidScale () const |
virtual bool | GetUseAdaptiveStepSizes () const |
virtual void | SetSigmoidMax (double _arg) |
virtual void | SetSigmoidMin (double _arg) |
virtual void | SetSigmoidScale (double _arg) |
virtual void | SetUseAdaptiveStepSizes (bool _arg) |
Public Member Functions inherited from itk::StandardGradientDescentOptimizer | |
void | AdvanceOneStep (void) override |
virtual const char * | GetClassName () const |
virtual double | GetCurrentTime () const |
virtual double | GetInitialTime () const |
virtual double | GetParam_a () const |
virtual double | GetParam_A () const |
virtual double | GetParam_alpha () const |
virtual void | ResetCurrentTimeToInitialTime (void) |
virtual void | SetInitialTime (double _arg) |
virtual void | SetParam_a (double _arg) |
virtual void | SetParam_A (double _arg) |
virtual void | SetParam_alpha (double _arg) |
void | StartOptimization (void) override |
Public Member Functions inherited from itk::GradientDescentOptimizer2 | |
virtual void | AdvanceOneStep (void) |
virtual const char * | GetClassName () const |
virtual unsigned int | GetCurrentIteration () const |
virtual const DerivativeType & | GetGradient () |
virtual const double & | GetLearningRate () |
virtual const unsigned long & | GetNumberOfIterations () |
virtual const DerivativeType & | GetSearchDirection () |
virtual const StopConditionType & | GetStopCondition () |
virtual const double & | GetValue () |
virtual void | MetricErrorResponse (ExceptionObject &err) |
virtual void | ResumeOptimization (void) |
virtual void | SetLearningRate (double _arg) |
virtual void | SetNumberOfIterations (unsigned long _arg) |
virtual void | SetUseOpenMP (bool _arg) |
void | StartOptimization (void) override |
virtual void | StopOptimization (void) |
Public Member Functions inherited from itk::ScaledSingleValuedNonLinearOptimizer | |
virtual const char * | GetClassName () const |
const ParametersType & | GetCurrentPosition (void) const override |
virtual bool | GetMaximize () const |
virtual const ScaledCostFunctionType * | GetScaledCostFunction () |
virtual const ParametersType & | GetScaledCurrentPosition () |
bool | GetUseScales (void) const |
virtual void | InitializeScales (void) |
virtual void | MaximizeOff () |
virtual void | MaximizeOn () |
void | SetCostFunction (CostFunctionType *costFunction) override |
virtual void | SetMaximize (bool _arg) |
virtual void | SetUseScales (bool arg) |
Public Member Functions inherited from elastix::OptimizerBase< TElastix > | |
void | AfterRegistrationBase (void) override |
void | BeforeEachResolutionBase () override |
virtual ITKBaseType * | GetAsITKBaseType (void) |
virtual const ITKBaseType * | GetAsITKBaseType (void) const |
virtual const char * | GetClassName () const |
virtual void | SetCurrentPositionPublic (const ParametersType ¶m) |
virtual void | SetSinusScales (double amplitude, double frequency, unsigned long numberOfParameters) |
Public Member Functions inherited from elastix::BaseComponentSE< TElastix > | |
ConfigurationType * | GetConfiguration (void) const |
ElastixType * | GetElastix (void) const |
RegistrationPointer | GetRegistration (void) const |
ITK_DISALLOW_COPY_AND_ASSIGN (BaseComponentSE) | |
void | SetConfiguration (ConfigurationType *_arg) |
void | SetElastix (ElastixType *_arg) |
Public Member Functions inherited from elastix::BaseComponent | |
virtual void | AfterEachIteration (void) |
virtual void | AfterEachIterationBase (void) |
virtual void | AfterEachResolution (void) |
virtual void | AfterEachResolutionBase (void) |
virtual void | AfterRegistration (void) |
virtual void | AfterRegistrationBase (void) |
virtual int | BeforeAll (void) |
virtual int | BeforeAllBase (void) |
virtual void | BeforeEachResolution (void) |
virtual void | BeforeEachResolutionBase (void) |
virtual void | BeforeRegistration (void) |
virtual void | BeforeRegistrationBase (void) |
virtual const char * | elxGetClassName (void) const |
const char * | GetComponentLabel (void) const |
ITK_DISALLOW_COPY_AND_ASSIGN (BaseComponent) | |
itkTypeMacroNoParent (BaseComponent) | |
void | SetComponentLabel (const char *label, unsigned int idx) |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::PreconditionedASGDOptimizer | |
static Pointer | New () |
Static Public Member Functions inherited from itk::StandardGradientDescentOptimizer | |
static Pointer | New () |
Static Public Member Functions inherited from itk::GradientDescentOptimizer2 | |
static Pointer | New () |
Static Public Member Functions inherited from itk::ScaledSingleValuedNonLinearOptimizer | |
static Pointer | New () |
Static Public Member Functions inherited from elastix::BaseComponent | |
static std::string | ConvertSecondsToDHMS (const double totalSeconds, const unsigned int precision) |
static void | InitializeElastixExecutable () |
static bool | IsElastixLibrary () |
Protected Member Functions | |
virtual void | AddRandomPerturbation (ParametersType ¶meters, double sigma) |
virtual void | AutomaticPreconditionerEstimation (void) |
virtual void | CheckForAdvancedTransform (void) |
virtual void | GetScaledDerivativeWithExceptionHandling (const ParametersType ¶meters, DerivativeType &derivative) |
itkStaticConstMacro (FixedImageDimension, unsigned int, FixedImageType::ImageDimension) | |
itkStaticConstMacro (MovingImageDimension, unsigned int, MovingImageType::ImageDimension) | |
PreconditionedStochasticGradientDescent () | |
virtual void | PrintSettingsVector (const SettingsVectorType &settings) const |
virtual void | SampleGradients (const ParametersType &mu0, double perturbationSigma, double &gg, double &ee) |
~PreconditionedStochasticGradientDescent () override | |
Protected Member Functions inherited from itk::PreconditionedASGDOptimizer | |
PreconditionedASGDOptimizer () | |
void | UpdateCurrentTime (void) override |
~PreconditionedASGDOptimizer () override | |
Protected Member Functions inherited from itk::StandardGradientDescentOptimizer | |
virtual double | Compute_a (double k) const |
StandardGradientDescentOptimizer () | |
virtual void | UpdateCurrentTime (void) |
~StandardGradientDescentOptimizer () override | |
Protected Member Functions inherited from itk::GradientDescentOptimizer2 | |
GradientDescentOptimizer2 () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~GradientDescentOptimizer2 () override | |
Protected Member Functions inherited from itk::ScaledSingleValuedNonLinearOptimizer | |
virtual void | GetScaledDerivative (const ParametersType ¶meters, DerivativeType &derivative) const |
virtual MeasureType | GetScaledValue (const ParametersType ¶meters) const |
virtual void | GetScaledValueAndDerivative (const ParametersType ¶meters, MeasureType &value, DerivativeType &derivative) const |
void | PrintSelf (std::ostream &os, Indent indent) const override |
ScaledSingleValuedNonLinearOptimizer () | |
void | SetCurrentPosition (const ParametersType ¶m) override |
virtual void | SetScaledCurrentPosition (const ParametersType ¶meters) |
~ScaledSingleValuedNonLinearOptimizer () override | |
Protected Member Functions inherited from elastix::OptimizerBase< TElastix > | |
virtual bool | GetNewSamplesEveryIteration (void) const |
OptimizerBase () | |
virtual void | SelectNewSamples (void) |
~OptimizerBase () override | |
Protected Member Functions inherited from elastix::BaseComponentSE< TElastix > | |
BaseComponentSE ()=default | |
~BaseComponentSE () override=default | |
Protected Member Functions inherited from elastix::BaseComponent | |
BaseComponent ()=default | |
virtual | ~BaseComponent ()=default |
Private Member Functions | |
void | operator= (const Self &) |
PreconditionedStochasticGradientDescent (const Self &) | |
|
protected |
Definition at line 343 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 337 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 336 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 344 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 301 of file elxPreconditionedStochasticGradientDescent.h.
typedef Superclass2::ConfigurationPointer elastix::PreconditionedStochasticGradientDescent< TElastix >::ConfigurationPointer |
Definition at line 213 of file elxPreconditionedStochasticGradientDescent.h.
typedef Superclass2::ConfigurationType elastix::PreconditionedStochasticGradientDescent< TElastix >::ConfigurationType |
Definition at line 212 of file elxPreconditionedStochasticGradientDescent.h.
typedef itk::SmartPointer< const Self > elastix::PreconditionedStochasticGradientDescent< TElastix >::ConstPointer |
Definition at line 189 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 331 of file elxPreconditionedStochasticGradientDescent.h.
typedef Superclass1::CostFunctionPointer elastix::PreconditionedStochasticGradientDescent< TElastix >::CostFunctionPointer |
Definition at line 206 of file elxPreconditionedStochasticGradientDescent.h.
typedef Superclass1::CostFunctionType elastix::PreconditionedStochasticGradientDescent< TElastix >::CostFunctionType |
Typedef's inherited from Superclass1.
Definition at line 205 of file elxPreconditionedStochasticGradientDescent.h.
typedef Superclass2::ElastixPointer elastix::PreconditionedStochasticGradientDescent< TElastix >::ElastixPointer |
Definition at line 211 of file elxPreconditionedStochasticGradientDescent.h.
typedef Superclass2::ElastixType elastix::PreconditionedStochasticGradientDescent< TElastix >::ElastixType |
Typedef's inherited from Superclass2.
Definition at line 210 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 286 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 287 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 285 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Protected typedefs
Definition at line 282 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 316 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 315 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 312 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 310 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 308 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 306 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 314 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 313 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 319 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 318 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 305 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Samplers:
Definition at line 304 of file elxPreconditionedStochasticGradientDescent.h.
typedef Superclass2::ITKBaseType elastix::PreconditionedStochasticGradientDescent< TElastix >::ITKBaseType |
Definition at line 216 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 288 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 290 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 291 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 283 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 339 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 294 of file elxPreconditionedStochasticGradientDescent.h.
typedef Superclass1::ParametersType elastix::PreconditionedStochasticGradientDescent< TElastix >::ParametersType |
Typedef for the ParametersType.
Definition at line 220 of file elxPreconditionedStochasticGradientDescent.h.
typedef itk::SmartPointer< Self > elastix::PreconditionedStochasticGradientDescent< TElastix >::Pointer |
Definition at line 188 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 298 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 297 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 325 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 324 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 323 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Other protected typedefs
Definition at line 322 of file elxPreconditionedStochasticGradientDescent.h.
typedef Superclass2::RegistrationPointer elastix::PreconditionedStochasticGradientDescent< TElastix >::RegistrationPointer |
Definition at line 215 of file elxPreconditionedStochasticGradientDescent.h.
typedef Superclass2::RegistrationType elastix::PreconditionedStochasticGradientDescent< TElastix >::RegistrationType |
Definition at line 214 of file elxPreconditionedStochasticGradientDescent.h.
typedef PreconditionedStochasticGradientDescent elastix::PreconditionedStochasticGradientDescent< TElastix >::Self |
Standard ITK.
Definition at line 185 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 293 of file elxPreconditionedStochasticGradientDescent.h.
typedef itk::SizeValueType elastix::PreconditionedStochasticGradientDescent< TElastix >::SizeValueType |
Definition at line 217 of file elxPreconditionedStochasticGradientDescent.h.
typedef Superclass1::StopConditionType elastix::PreconditionedStochasticGradientDescent< TElastix >::StopConditionType |
Definition at line 207 of file elxPreconditionedStochasticGradientDescent.h.
typedef PreconditionedASGDOptimizer elastix::PreconditionedStochasticGradientDescent< TElastix >::Superclass1 |
Definition at line 186 of file elxPreconditionedStochasticGradientDescent.h.
typedef OptimizerBase< TElastix > elastix::PreconditionedStochasticGradientDescent< TElastix >::Superclass2 |
Definition at line 187 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Typedefs for support of sparse Jacobians and AdvancedTransforms.
Definition at line 328 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 289 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
|
inlineoverrideprotected |
Definition at line 279 of file elxPreconditionedStochasticGradientDescent.h.
|
private |
|
protectedvirtual |
Helper function that adds a random perturbation delta to the input parameters, with delta ~ sigma * N(0,I). Used by SampleGradients.
|
overridevirtual |
Advance one step following the gradient direction.
Reimplemented from itk::GradientDescentOptimizer2.
|
overridevirtual |
Reimplemented from elastix::BaseComponent.
|
overridevirtual |
Reimplemented from elastix::BaseComponent.
|
overridevirtual |
Reimplemented from elastix::BaseComponent.
|
protectedvirtual |
Select different method to estimate some reasonable values for the parameters SP_a, SP_alpha (=1), SigmoidMin, SigmoidMax (=1), and SigmoidScale.
|
overridevirtual |
Reimplemented from elastix::BaseComponent.
|
overridevirtual |
Methods invoked by elastix, in which parameters can be set and progress information can be printed.
Reimplemented from elastix::BaseComponent.
|
protectedvirtual |
Check if the transform is an advanced transform. Called by Initialize.
elastix::PreconditionedStochasticGradientDescent< TElastix >::elxClassNameMacro | ( | "PreconditionedStochasticGradientDescent< TElastix >" | ) |
Name of this class. Use this name in the parameter file to select this specific optimizer. example: (Optimizer "PreconditionedStochasticGradientDescent")
|
virtual |
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::PreconditionedASGDOptimizer.
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
Helper function, which calls GetScaledValueAndDerivative and does some exception handling. Used by SampleGradients.
|
protected |
|
protected |
|
override |
Stop optimization and pass on exception.
|
static |
Method for creation through the object factory.
|
private |
|
protectedvirtual |
Print the contents of the settings vector to elxout.
|
overridevirtual |
If automatic gain estimation is desired, then estimate SP_a, SP_alpha SigmoidScale, SigmoidMax, SigmoidMin. After that call Superclass' implementation.
Reimplemented from itk::GradientDescentOptimizer2.
|
protectedvirtual |
Measure some derivatives, exact and approximated. Returns the squared magnitude of the gradient and approximation error. Needed for the automatic parameter estimation. Gradients are measured at position mu_n, which are generated according to: mu_n - mu_0 ~ N(0, perturbationSigma^2 I ); gg = g^T g, etc.
|
virtual |
Set/Get whether automatic parameter estimation is desired. If true, make sure to set the maximum step length.
The following parameters are automatically determined: SP_a, SP_alpha (=1), SigmoidMin, SigmoidMax (=1), SigmoidScale. A usually suitable value for SP_A is 20, which is the default setting, if not specified by the user.
|
virtual |
Set/Get the MaximumNumberOfSamplingAttempts.
|
virtual |
Set/Get maximum step length.
|
virtual |
Set/Get regularization value kappa.
|
override |
Check if any scales are set, and set the UseScales flag on or off; after that call the superclass' implementation.
|
protected |
The transform stored as AdvancedTransform
Definition at line 357 of file elxPreconditionedStochasticGradientDescent.h.
|
private |
Definition at line 406 of file elxPreconditionedStochasticGradientDescent.h.
|
private |
Definition at line 414 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 366 of file elxPreconditionedStochasticGradientDescent.h.
|
private |
Definition at line 412 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 364 of file elxPreconditionedStochasticGradientDescent.h.
|
private |
Private variables for band size estimation of covariance matrix.
Definition at line 417 of file elxPreconditionedStochasticGradientDescent.h.
|
private |
Private variables for the sampling attempts.
Definition at line 411 of file elxPreconditionedStochasticGradientDescent.h.
|
private |
Definition at line 407 of file elxPreconditionedStochasticGradientDescent.h.
|
private |
Definition at line 408 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 363 of file elxPreconditionedStochasticGradientDescent.h.
|
private |
Definition at line 418 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Some options for automatic parameter estimation.
Definition at line 350 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 351 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 352 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 353 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 354 of file elxPreconditionedStochasticGradientDescent.h.
|
private |
Definition at line 422 of file elxPreconditionedStochasticGradientDescent.h.
|
private |
Definition at line 413 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
RandomGenerator for AddRandomPerturbation.
Definition at line 360 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 365 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Variable to store the automatically determined settings for each resolution.
Definition at line 347 of file elxPreconditionedStochasticGradientDescent.h.
|
protected |
Definition at line 362 of file elxPreconditionedStochasticGradientDescent.h.
|
private |
The flag of using noise compensation.
Definition at line 421 of file elxPreconditionedStochasticGradientDescent.h.
Generated on 1667476801 for elastix by 1.9.4 |