File regularization_manual.hpp

namespace boosting
class IManualRegularizationConfig
#include <regularization_manual.hpp>

Defines an interface for all classes that allow to configure a regularization term that affects the evaluation of rules by manually specifying the weight of the regularization term.

Subclassed by boosting::ManualRegularizationConfig

Public Functions

inline virtual ~IManualRegularizationConfig()
virtual float64 getRegularizationWeight() const = 0

Returns the weight of the regularization term.

Returns:

The weight of the regularization term

virtual IManualRegularizationConfig &setRegularizationWeight(float64 regularizationWeight) = 0

Sets the weight of the regularization term.

Parameters:

regularizationWeight – The weight of the regularization term. Must be greater than 0

Returns:

A reference to an object of type IManualRegularizationConfig that allows further configuration of the regularization term

class ManualRegularizationConfig : public boosting::IRegularizationConfig, public boosting::IManualRegularizationConfig
#include <regularization_manual.hpp>

Allows to configure a regularization term that affects the evaluation of rules by manually specifying the weight of the regularization term.

Public Functions

ManualRegularizationConfig()
virtual float64 getRegularizationWeight() const override

Returns the weight of the regularization term.

Returns:

The weight of the regularization term

virtual IManualRegularizationConfig &setRegularizationWeight(float64 regularizationWeight) override

Sets the weight of the regularization term.

Parameters:

regularizationWeight – The weight of the regularization term. Must be greater than 0

Returns:

A reference to an object of type IManualRegularizationConfig that allows further configuration of the regularization term

virtual float64 getWeight() const override

Determines and returns the weight of the regularization term according to the specified configuration.

Returns:

The weight of the regularization term

Private Members

float64 regularizationWeight_