OpenGM  2.3.x
Discrete Graphical Model Library
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
opengm::Nesterov_Parameter< GM > Struct Template Reference

#include <smooth_nesterov.hxx>

+ Inheritance diagram for opengm::Nesterov_Parameter< GM >:
+ Collaboration diagram for opengm::Nesterov_Parameter< GM >:

Public Types

enum  GradientStepType { ADAPTIVE_STEP, WC_STEP, JOJIC_STEP }
 
typedef GM::ValueType ValueType
 
typedef trws_base::DecompositionStorage< GM > Storage
 
typedef trws_base::SmoothingBasedInference_Parameter< GM > parent
 
typedef parent::SmoothingParametersType SmoothingParametersType
 
typedef parent::SumProdSolverParametersType SumProdSolverParametersType
 
typedef parent::MaxSumSolverParametersType MaxSumSolverParametersType
 
typedef parent::PrimalLPEstimatorParametersType PrimalLPEstimatorParametersType
 
typedef parent::SmoothingStrategyType SmoothingStrategyType
 
- Public Types inherited from opengm::trws_base::SmoothingBasedInference_Parameter< GM >
typedef GM::ValueType ValueType
 
typedef trws_base::DecompositionStorage< GM > Storage
 
typedef trws_base::SmoothingBasedInference_Parameter_Base< GM > parent
 
typedef parent::SmoothingParametersType SmoothingParametersType
 
typedef parent::SumProdSolverParametersType SumProdSolverParametersType
 
typedef parent::MaxSumSolverParametersType MaxSumSolverParametersType
 
typedef parent::PrimalLPEstimatorParametersType PrimalLPEstimatorParametersType
 
typedef SmoothingParametersType::SmoothingStrategyType SmoothingStrategyType
 
- Public Types inherited from opengm::trws_base::SmoothingBasedInference_Parameter_Base< GM >
typedef GM::ValueType ValueType
 
typedef DecompositionStorage< GM > Storage
 
typedef SmoothingParameters< ValueTypeSmoothingParametersType
 
typedef SumProdTRWS_Parameters< ValueTypeSumProdSolverParametersType
 
typedef MaxSumTRWS_Parameters< ValueTypeMaxSumSolverParametersType
 
typedef PrimalLPBound_Parameter< ValueTypePrimalLPEstimatorParametersType
 

Public Member Functions

 Nesterov_Parameter (size_t numOfExternalIterations=0, ValueType precision=1.0, bool absolutePrecision=true, size_t numOfInternalIterations=3, typename Storage::StructureType decompositionType=Storage::GENERALSTRUCTURE, ValueType smoothingGapRatio=4, ValueType startSmoothingValue=0.0, ValueType primalBoundPrecision=std::numeric_limits< ValueType >::epsilon(), size_t maxPrimalBoundIterationNumber=100, size_t presolveMaxIterNumber=100, bool canonicalNormalization=true, ValueType presolveMinRelativeDualImprovement=0.01, bool lazyLPPrimalBoundComputation=true, ValueType smoothingDecayMultiplier=-1.0, SmoothingStrategyType smoothingStrategy=SmoothingParametersType::ADAPTIVE_DIMINISHING, bool fastComputations=true, bool verbose=false, GradientStepType gradientStep=ADAPTIVE_STEP, ValueType gamma0=1e6, bool plainGradient=false)
 
- Public Member Functions inherited from opengm::trws_base::SmoothingBasedInference_Parameter< GM >
 SmoothingBasedInference_Parameter (size_t numOfExternalIterations=0, ValueType precision=1.0, bool absolutePrecision=true, size_t numOfInternalIterations=3, typename Storage::StructureType decompositionType=Storage::GENERALSTRUCTURE, ValueType smoothingGapRatio=4, ValueType startSmoothingValue=0.0, ValueType primalBoundPrecision=std::numeric_limits< ValueType >::epsilon(), size_t maxPrimalBoundIterationNumber=100, size_t presolveMaxIterNumber=100, bool canonicalNormalization=true, ValueType presolveMinRelativeDualImprovement=0.01, bool lazyLPPrimalBoundComputation=true, ValueType smoothingDecayMultiplier=-1.0, SmoothingStrategyType smoothingStrategy=SmoothingParametersType::ADAPTIVE_DIMINISHING, bool fastComputations=true, bool verbose=false)
 
size_tmaxNumberOfIterations ()
 
const size_tmaxNumberOfIterations () const
 
size_tnumberOfInternalIterations ()
 
const size_tnumberOfInternalIterations () const
 
const ValueTypeprecision () const
 
void setPrecision (ValueType precision)
 
boolisAbsolutePrecision ()
 
const boolisAbsolutePrecision () const
 
ValueTypesmoothingGapRatio ()
 
const ValueTypesmoothingGapRatio () const
 
boollazyLPPrimalBoundComputation ()
 
const boollazyLPPrimalBoundComputation () const
 
ValueTypesmoothingDecayMultiplier ()
 
const ValueTypesmoothingDecayMultiplier () const
 
SmoothingStrategyTypesmoothingStrategy ()
 
const SmoothingStrategyTypesmoothingStrategy () const
 
Storage::StructureTypedecompositionType ()
 
const Storage::StructureTypedecompositionType () const
 
const ValueTypestartSmoothingValue () const
 
void setStartSmoothingValue (ValueType val)
 
const boolfastComputations () const
 
void setFastComputations (bool fast)
 
const boolcanonicalNormalization () const
 
void setCanonicalNormalization (bool canonical)
 
size_tmaxNumberOfPresolveIterations ()
 
const size_tmaxNumberOfPresolveIterations () const
 
ValueTypepresolveMinRelativeDualImprovement ()
 
const ValueTypepresolveMinRelativeDualImprovement () const
 
size_tmaxPrimalBoundIterationNumber ()
 
const size_tmaxPrimalBoundIterationNumber () const
 
ValueTypeprimalBoundRelativePrecision ()
 
const ValueTypeprimalBoundRelativePrecision () const
 
boolverbose ()
 
const boolverbose () const
 
- Public Member Functions inherited from opengm::trws_base::SmoothingBasedInference_Parameter_Base< GM >
 SmoothingBasedInference_Parameter_Base (typename Storage::StructureType decompositionType, bool lazyLPPrimalBoundComputation, const SmoothingParametersType &smoothingParameters, const SumProdSolverParametersType &sumProdSolverParameters, const MaxSumSolverParametersType &maxSumSolverParameters, const PrimalLPEstimatorParametersType &primalLPEstimatorParameters)
 
virtual ~SmoothingBasedInference_Parameter_Base ()
 
const SmoothingParametersTypegetSmoothingParameters () const
 
const SumProdSolverParametersTypegetSumProdSolverParameters () const
 
const MaxSumSolverParametersTypegetMaxSumSolverParameters () const
 
const PrimalLPEstimatorParametersTypegetPrimalLPEstimatorParameters () const
 

Static Public Member Functions

static GradientStepType getGradientStepType (const std::string &name)
 
static std::string getString (GradientStepType steptype)
 

Public Attributes

GradientStepType gradientStep_
 
ValueType gamma0_
 
bool plainGradient_
 
- Public Attributes inherited from opengm::trws_base::SmoothingBasedInference_Parameter< GM >
size_t numOfExternalIterations_
 
bool verbose_
 
- Public Attributes inherited from opengm::trws_base::SmoothingBasedInference_Parameter_Base< GM >
Storage::StructureType decompositionType_
 
bool lazyLPPrimalBoundComputation_
 

Additional Inherited Members

- Protected Attributes inherited from opengm::trws_base::SmoothingBasedInference_Parameter_Base< GM >
SmoothingParametersType smoothingParameters_
 
SumProdSolverParametersType sumProdSolverParameters_
 
MaxSumSolverParametersType maxSumSolverParameters_
 
PrimalLPEstimatorParametersType primalLPEstimatorParameters_
 

Detailed Description

template<class GM>
struct opengm::Nesterov_Parameter< GM >

Definition at line 18 of file smooth_nesterov.hxx.

Member Typedef Documentation

Definition at line 26 of file smooth_nesterov.hxx.

Definition at line 23 of file smooth_nesterov.hxx.

Definition at line 27 of file smooth_nesterov.hxx.

Definition at line 24 of file smooth_nesterov.hxx.

Definition at line 28 of file smooth_nesterov.hxx.

template<class GM >
typedef trws_base::DecompositionStorage<GM> opengm::Nesterov_Parameter< GM >::Storage

Definition at line 22 of file smooth_nesterov.hxx.

Definition at line 25 of file smooth_nesterov.hxx.

template<class GM >
typedef GM::ValueType opengm::Nesterov_Parameter< GM >::ValueType

Definition at line 21 of file smooth_nesterov.hxx.

Member Enumeration Documentation

Enumerator
ADAPTIVE_STEP 
WC_STEP 
JOJIC_STEP 

Definition at line 29 of file smooth_nesterov.hxx.

Constructor & Destructor Documentation

template<class GM >
opengm::Nesterov_Parameter< GM >::Nesterov_Parameter ( size_t  numOfExternalIterations = 0,
ValueType  precision = 1.0,
bool  absolutePrecision = true,
size_t  numOfInternalIterations = 3,
typename Storage::StructureType  decompositionType = Storage::GENERALSTRUCTURE,
ValueType  smoothingGapRatio = 4,
ValueType  startSmoothingValue = 0.0,
ValueType  primalBoundPrecision = std::numeric_limits<ValueType>::epsilon(),
size_t  maxPrimalBoundIterationNumber = 100,
size_t  presolveMaxIterNumber = 100,
bool  canonicalNormalization = true,
ValueType  presolveMinRelativeDualImprovement = 0.01,
bool  lazyLPPrimalBoundComputation = true,
ValueType  smoothingDecayMultiplier = -1.0,
SmoothingStrategyType  smoothingStrategy = SmoothingParametersType::ADAPTIVE_DIMINISHING,
bool  fastComputations = true,
bool  verbose = false,
GradientStepType  gradientStep = ADAPTIVE_STEP,
ValueType  gamma0 = 1e6,
bool  plainGradient = false 
)
inline

Definition at line 49 of file smooth_nesterov.hxx.

Member Function Documentation

template<class GM >
static GradientStepType opengm::Nesterov_Parameter< GM >::getGradientStepType ( const std::string &  name)
inlinestatic

Definition at line 31 of file smooth_nesterov.hxx.

template<class GM >
static std::string opengm::Nesterov_Parameter< GM >::getString ( GradientStepType  steptype)
inlinestatic

Definition at line 38 of file smooth_nesterov.hxx.

Member Data Documentation

template<class GM >
ValueType opengm::Nesterov_Parameter< GM >::gamma0_

Definition at line 94 of file smooth_nesterov.hxx.

template<class GM >
GradientStepType opengm::Nesterov_Parameter< GM >::gradientStep_

Definition at line 91 of file smooth_nesterov.hxx.

template<class GM >
bool opengm::Nesterov_Parameter< GM >::plainGradient_

Definition at line 95 of file smooth_nesterov.hxx.