Loading...
Searching...
No Matches
itkAdaptiveStochasticGradientDescentOptimizer.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef itkAdaptiveStochasticGradientDescentOptimizer_h
#define itkAdaptiveStochasticGradientDescentOptimizer_h
#include "../StandardGradientDescent/itkStandardGradientDescentOptimizer.h"
namespace itk
{
class AdaptiveStochasticGradientDescentOptimizer : public StandardGradientDescentOptimizer
{
public:
ITK_DISALLOW_COPY_AND_MOVE(AdaptiveStochasticGradientDescentOptimizer);
using Self = AdaptiveStochasticGradientDescentOptimizer;
using Superclass = StandardGradientDescentOptimizer;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(AdaptiveStochasticGradientDescentOptimizer, StandardGradientDescentOptimizer);
using Superclass::MeasureType;
using Superclass::ParametersType;
using Superclass::DerivativeType;
using Superclass::CostFunctionType;
using Superclass::ScalesType;
using Superclass::ScaledCostFunctionType;
using Superclass::ScaledCostFunctionPointer;
using Superclass::StopConditionType;
itkSetMacro(UseAdaptiveStepSizes, bool);
itkGetConstMacro(UseAdaptiveStepSizes, bool);
itkSetMacro(SigmoidMax, double);
itkGetConstMacro(SigmoidMax, double);
itkSetMacro(SigmoidMin, double);
itkGetConstMacro(SigmoidMin, double);
itkSetMacro(SigmoidScale, double);
itkGetConstMacro(SigmoidScale, double);
protected:
AdaptiveStochasticGradientDescentOptimizer();
~AdaptiveStochasticGradientDescentOptimizer() override = default;
void
UpdateCurrentTime() override;
DerivativeType m_PreviousGradient{};
private:
bool m_UseAdaptiveStepSizes{ true };
double m_SigmoidMax{ 1.0 };
double m_SigmoidMin{ -0.8 };
double m_SigmoidScale{ 1e-8 };
};
} // end namespace itk
#endif // end #ifndef itkAdaptiveStochasticGradientDescentOptimizer_h
itk::AdaptiveStochasticGradientDescentOptimizer::~AdaptiveStochasticGradientDescentOptimizer
~AdaptiveStochasticGradientDescentOptimizer() override=default
itk::AdaptiveStochasticGradientDescentOptimizer::m_SigmoidMin
double m_SigmoidMin
Definition itkAdaptiveStochasticGradientDescentOptimizer.h:140
itk::AdaptiveStochasticGradientDescentOptimizer::Pointer
SmartPointer< Self > Pointer
Definition itkAdaptiveStochasticGradientDescentOptimizer.h:81
itk::AdaptiveStochasticGradientDescentOptimizer::m_PreviousGradient
DerivativeType m_PreviousGradient
Definition itkAdaptiveStochasticGradientDescentOptimizer.h:134
itk::AdaptiveStochasticGradientDescentOptimizer::Self
AdaptiveStochasticGradientDescentOptimizer Self
Definition itkAdaptiveStochasticGradientDescentOptimizer.h:78
itk::AdaptiveStochasticGradientDescentOptimizer::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(AdaptiveStochasticGradientDescentOptimizer)
itk::AdaptiveStochasticGradientDescentOptimizer::m_SigmoidScale
double m_SigmoidScale
Definition itkAdaptiveStochasticGradientDescentOptimizer.h:141
itk::AdaptiveStochasticGradientDescentOptimizer::m_UseAdaptiveStepSizes
bool m_UseAdaptiveStepSizes
Definition itkAdaptiveStochasticGradientDescentOptimizer.h:138
itk::AdaptiveStochasticGradientDescentOptimizer::UpdateCurrentTime
void UpdateCurrentTime() override
itk::AdaptiveStochasticGradientDescentOptimizer::Superclass
StandardGradientDescentOptimizer Superclass
Definition itkAdaptiveStochasticGradientDescentOptimizer.h:79
itk::AdaptiveStochasticGradientDescentOptimizer::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkAdaptiveStochasticGradientDescentOptimizer.h:82
itk::AdaptiveStochasticGradientDescentOptimizer::AdaptiveStochasticGradientDescentOptimizer
AdaptiveStochasticGradientDescentOptimizer()
itk::AdaptiveStochasticGradientDescentOptimizer::m_SigmoidMax
double m_SigmoidMax
Definition itkAdaptiveStochasticGradientDescentOptimizer.h:139
itk::StandardGradientDescentOptimizer::StandardGradientDescentOptimizer
StandardGradientDescentOptimizer()
itk::StandardGradientDescentOptimizer::ScaledCostFunctionPointer
ScaledCostFunctionType::Pointer ScaledCostFunctionPointer
Definition itkScaledSingleValuedNonLinearOptimizer.h:87
itk::StandardGradientDescentOptimizer::ScalesType
NonLinearOptimizer::ScalesType ScalesType
Definition itkScaledSingleValuedNonLinearOptimizer.h:85
itk::StandardGradientDescentOptimizer::ScaledCostFunctionType
ScaledSingleValuedCostFunction ScaledCostFunctionType
Definition itkScaledSingleValuedNonLinearOptimizer.h:86
itk::StandardGradientDescentOptimizer::StopConditionType
StopConditionType
Definition itkGradientDescentOptimizer2.h:84
itkStandardGradientDescentOptimizer.h
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |