File default_rule_auto.hpp

namespace boosting
class AutomaticDefaultRuleConfig : public IDefaultRuleConfig
#include <default_rule_auto.hpp>

Allows to configure a method that automatically decides whether a default rule should be included in a rule-based model or not.

Public Functions

AutomaticDefaultRuleConfig(ReadableProperty<IStatisticsConfig> statisticsConfig, ReadableProperty<ILossConfig> lossConfig, ReadableProperty<IHeadConfig> headConfig)
Parameters:
  • statisticsConfig – A ReadableProperty that allows to access the IStatisticsConfig that stores the configuration of the statistics

  • lossConfig – A ReadableProperty that allows to access the ILossConfig that stores the configuration of the loss function

  • headConfig – A ReadableProperty that allows to access the IHeadConfig that stores the configuration of the rule heads

bool isDefaultRuleUsed(const IOutputMatrix &outputMatrix) const override

See also

IDefaultRuleConfig::isDefaultRuleUsed

Private Members

const ReadableProperty<IStatisticsConfig> statisticsConfig_
const ReadableProperty<ILossConfig> lossConfig_
const ReadableProperty<IHeadConfig> headConfig_