18 #ifndef itkRegularStepGradientDescentOptimizerv4_h
19 #define itkRegularStepGradientDescentOptimizerv4_h
45 template<
typename TInternalComputationValueType>
88 itkSetMacro(MinimumStepLength, TInternalComputationValueType);
89 itkGetConstReferenceMacro(MinimumStepLength, TInternalComputationValueType);
93 itkSetMacro(RelaxationFactor, TInternalComputationValueType);
94 itkGetConstReferenceMacro(RelaxationFactor, TInternalComputationValueType);
98 itkSetMacro(GradientMagnitudeTolerance, TInternalComputationValueType);
99 itkGetConstReferenceMacro(GradientMagnitudeTolerance, TInternalComputationValueType);
103 itkSetMacro(CurrentLearningRateRelaxation,
MeasureType);
104 itkGetConstReferenceMacro(CurrentLearningRateRelaxation,
MeasureType);
108 virtual void StartOptimization(
bool doOnlyInitialization =
false ) ITK_OVERRIDE;
111 virtual
void EstimateLearningRate() ITK_OVERRIDE;
114 double GetCurrentStepLength() const;
120 virtual
void AdvanceOneStep(
void) ITK_OVERRIDE;
123 virtual
void ModifyGradientByScalesOverSubRange( const
IndexRangeType& subrange ) ITK_OVERRIDE;
124 virtual
void ModifyGradientByLearningRateOverSubRange( const
IndexRangeType& subrange ) ITK_OVERRIDE;
134 virtual
void PrintSelf( std::ostream & os,
Indent indent ) const ITK_OVERRIDE;
140 TInternalComputationValueType m_RelaxationFactor;
142 TInternalComputationValueType m_MinimumStepLength;
144 TInternalComputationValueType m_GradientMagnitudeTolerance;
151 #ifndef ITK_MANUAL_INSTANTIATION
152 #include "itkRegularStepGradientDescentOptimizerv4.hxx"
Superclass::StopConditionType StopConditionType
Superclass::IndexRangeType IndexRangeType
Light weight base class for most itk classes.
SmartPointer< Self > Pointer
Superclass::ParametersType ParametersType
RegularStepGradientDescentOptimizerv4 Self
Superclass::MeasureType MeasureType
GradientDescentOptimizerv4Template< TInternalComputationValueType > Superclass
Perform more precise accumulation of floating point numbers.
SmartPointer< const Self > ConstPointer
Superclass::ScalesType ScalesType
CompensatedSummation< InternalComputationValueType > CompensatedSummationType
Superclass::MeasureType MeasureType
Control indentation during Print() invocation.
TInternalComputationValueType InternalComputationValueType
Regular Step Gradient descent optimizer.
Superclass::MeasureType MeasureType
Gradient descent optimizer.
Superclass::DerivativeType DerivativeType
ThreadedIndexedContainerPartitioner::IndexRangeType IndexRangeType