File stopping_criterion_list.hpp¶
-
class StoppingCriterionListFactory : public IStoppingCriterionFactory¶
- #include <stopping_criterion_list.hpp>
A factory that allows to create instances of the type
IStoppingCriterion
that allow to test multiple stopping criteria. If at least one of these stopping criteria is met, the induction of additional rules is stopped.Public Functions
-
void addStoppingCriterionFactory(std::unique_ptr<IStoppingCriterionFactory> stoppingCriterionFactoryPtr)¶
Adds a new factory that allows to create instances of a stopping criterion to be tested.
- Parameters:
stoppingCriterionFactoryPtr – An unique pointer to an object of type
IStoppingCriterionFactory
that should be added
-
virtual std::unique_ptr<IStoppingCriterion> create(const SinglePartition &partition) const override¶
Creates and returns a new object of type
IStoppingCriterion
.- Parameters:
partition – A reference to an object of type
SinglePartition
that provides access to the indices of the training examples that belong to the training set and the holdout set, respectively- Returns:
An unique pointer to an object of type
IStoppingCriterion
that has been created
-
virtual std::unique_ptr<IStoppingCriterion> create(BiPartition &partition) const override¶
Creates and returns a new object of type
IStoppingCriterion
.- Parameters:
partition – A reference to an object of type
BiPartition
that provides access to the indices of the training examples that belong to the training set and the holdout set, respectively- Returns:
An unique pointer to an object of type
IStoppingCriterion
that has been created
Private Members
-
std::vector<std::unique_ptr<IStoppingCriterionFactory>> stoppingCriterionFactories_¶
-
void addStoppingCriterionFactory(std::unique_ptr<IStoppingCriterionFactory> stoppingCriterionFactoryPtr)¶