Loading...
Searching...
No Matches
itkPreconditionedASGDOptimizer.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 itkPreconditionedASGDOptimizer_h
#define itkPreconditionedASGDOptimizer_h
#include "../StandardGradientDescent/itkStandardGradientDescentOptimizer.h"
namespace itk
{
class PreconditionedASGDOptimizer : public StandardGradientDescentOptimizer
{
public:
ITK_DISALLOW_COPY_AND_MOVE(PreconditionedASGDOptimizer);
using Self = PreconditionedASGDOptimizer;
using Superclass = StandardGradientDescentOptimizer;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(PreconditionedASGDOptimizer, 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);
itkGetConstReferenceMacro(PreconditionVector, ParametersType);
protected:
PreconditionedASGDOptimizer();
~PreconditionedASGDOptimizer() override = default;
void
UpdateCurrentTime() override;
DerivativeType m_PreviousSearchDirection{};
ParametersType m_PreconditionVector{};
std::string m_StepSizeStrategy{};
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 itkPreconditionedASGDOptimizer_h
itk::PreconditionedASGDOptimizer::UpdateCurrentTime
void UpdateCurrentTime() override
itk::PreconditionedASGDOptimizer::m_SigmoidMin
double m_SigmoidMin
Definition itkPreconditionedASGDOptimizer.h:142
itk::PreconditionedASGDOptimizer::Self
PreconditionedASGDOptimizer Self
Definition itkPreconditionedASGDOptimizer.h:76
itk::PreconditionedASGDOptimizer::~PreconditionedASGDOptimizer
~PreconditionedASGDOptimizer() override=default
itk::PreconditionedASGDOptimizer::m_SigmoidMax
double m_SigmoidMax
Definition itkPreconditionedASGDOptimizer.h:141
itk::PreconditionedASGDOptimizer::m_StepSizeStrategy
std::string m_StepSizeStrategy
Definition itkPreconditionedASGDOptimizer.h:136
itk::PreconditionedASGDOptimizer::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkPreconditionedASGDOptimizer.h:79
itk::PreconditionedASGDOptimizer::m_PreconditionVector
ParametersType m_PreconditionVector
Definition itkPreconditionedASGDOptimizer.h:135
itk::PreconditionedASGDOptimizer::m_SigmoidScale
double m_SigmoidScale
Definition itkPreconditionedASGDOptimizer.h:143
itk::PreconditionedASGDOptimizer::Pointer
SmartPointer< Self > Pointer
Definition itkPreconditionedASGDOptimizer.h:78
itk::PreconditionedASGDOptimizer::PreconditionedASGDOptimizer
PreconditionedASGDOptimizer()
itk::PreconditionedASGDOptimizer::m_PreviousSearchDirection
DerivativeType m_PreviousSearchDirection
Definition itkPreconditionedASGDOptimizer.h:134
itk::PreconditionedASGDOptimizer::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(PreconditionedASGDOptimizer)
itk::PreconditionedASGDOptimizer::Superclass
StandardGradientDescentOptimizer Superclass
Definition itkPreconditionedASGDOptimizer.h:77
itk::PreconditionedASGDOptimizer::m_UseAdaptiveStepSizes
bool m_UseAdaptiveStepSizes
Definition itkPreconditionedASGDOptimizer.h:140
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 |