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(const std::unique_ptr<IStatisticsConfig> &statisticsConfigPtr, const std::unique_ptr<ILossConfig> &lossConfigPtr, const std::unique_ptr<IHeadConfig> &headConfigPtr)
Parameters:
  • statisticsConfigPtr – A reference to an unique pointer that stores the configuration of the statistics

  • lossConfigPtr – A reference to an unique pointer that stores the configuration of the loss function

  • headConfigPtr – A reference to an unique pointer that stores the configuration of the rule heads

bool isDefaultRuleUsed(const IRowWiseLabelMatrix &labelMatrix) const override

See also

IDefaultRuleConfig::isDefaultRuleUsed

Private Members

const std::unique_ptr<IStatisticsConfig> &statisticsConfigPtr_
const std::unique_ptr<ILossConfig> &lossConfigPtr_
const std::unique_ptr<IHeadConfig> &headConfigPtr_