File shrinkage_constant.hpp¶
-
namespace boosting
-
class IConstantShrinkageConfig¶
- #include <shrinkage_constant.hpp>
Defines an interface for all classes that allow to configure a post-processor that shrinks the weights of rules by a constant “shrinkage” parameter.
Subclassed by boosting::ConstantShrinkageConfig
Public Functions
-
inline virtual ~IConstantShrinkageConfig()¶
-
virtual float64 getShrinkage() const = 0¶
Returns the value of the “shrinkage” parameter.
- Returns:
The value of the “shrinkage” parameter
-
virtual IConstantShrinkageConfig &setShrinkage(float64 shrinkage) = 0¶
Sets the value of the “shrinkage” parameter.
- Parameters:
shrinkage – The value of the “shrinkage” parameter. Must be in (0, 1)
- Returns:
A reference to an object of type
IConstantShrinkageConfig
that allows further configuration of the post-processor
-
inline virtual ~IConstantShrinkageConfig()¶
-
class ConstantShrinkageConfig : public IPostProcessorConfig, public boosting::IConstantShrinkageConfig¶
- #include <shrinkage_constant.hpp>
Allows to configure a post-processor that shrinks the weights of rules by a constant “shrinkage” parameter.
Public Functions
-
ConstantShrinkageConfig()¶
-
virtual float64 getShrinkage() const override¶
Returns the value of the “shrinkage” parameter.
- Returns:
The value of the “shrinkage” parameter
-
virtual IConstantShrinkageConfig &setShrinkage(float64 shrinkage) override¶
Sets the value of the “shrinkage” parameter.
- Parameters:
shrinkage – The value of the “shrinkage” parameter. Must be in (0, 1)
- Returns:
A reference to an object of type
IConstantShrinkageConfig
that allows further configuration of the post-processor
-
std::unique_ptr<IPostProcessorFactory> createPostProcessorFactory() const override¶
See also
IPostProcessorConfig::createPostProcessorFactory
-
ConstantShrinkageConfig()¶
-
class IConstantShrinkageConfig¶