File global_pruning.hpp¶
-
class IGlobalPruningConfig : public IStoppingCriterionConfig¶
- #include <global_pruning.hpp>
Defines an interface for all classes that allow to configure a stopping criterion that allows to decide how many rules should be included in a model, such that its performance is optimized globally.
Subclassed by PostPruningConfig, PrePruningConfig
Public Functions
-
inline virtual ~IGlobalPruningConfig() override¶
-
virtual bool shouldUseHoldoutSet() const = 0¶
Returns whether a holdout set should be used, if available, or not.
- Returns:
True, if a holdout set should be used, false otherwise
-
virtual bool shouldRemoveUnusedRules() const = 0¶
Returns whether unused rules should be removed from the final model or not.
- Returns:
True, if unused rules should be removed, false otherwise
-
inline virtual ~IGlobalPruningConfig() override¶