File post_optimization.hpp¶
-
class IPostOptimizationPhase¶
- #include <post_optimization.hpp>
Defines an interface for all classes that allow to optimize a rule-based model globally once it has been learned.
Subclassed by IPostOptimization
Public Functions
-
inline virtual ~IPostOptimizationPhase()¶
-
virtual void optimizeModel(IFeatureSpace &featureSpace, const IRuleInduction &ruleInduction, IPartition &partition, ILabelSampling &labelSampling, IInstanceSampling &instanceSampling, IFeatureSampling &featureSampling, const IRulePruning &rulePruning, const IPostProcessor &postProcessor, RNG &rng) const = 0¶
Optimizes a rule-based model globally once it has been learned.
- Parameters:
featureSpace – A reference to an object of type
IFeatureSpacethat provides access to the feature spaceruleInduction – A reference to an object of type
IRuleInductionthat should be used for inducing new rulespartition – A reference to an object of type
IPartitionthat provides access to the indices of the training examples that belong to the training set and the holdout set, respectivelylabelSampling – A reference to an object of type
ILabelSamplingthat should be used for sampling labelsinstanceSampling – A reference to an object of type
IInstanceSamplingthat should be used for sampling examplesfeatureSampling – A reference to an object of type
IFeatureSamplingthat should be used for sampling the features that may be used by the conditions of new rulesrulePruning – A reference to an object of type
IRulePruningthat should be used to prune new rulespostProcessor – A reference to an object of type
IPostProcessorthat should be used to post-process the predictions of new rulesrng – A reference to an object of type
RNGthat implements the random number generator to be used
-
inline virtual ~IPostOptimizationPhase()¶
-
class IPostOptimizationPhaseFactory¶
- #include <post_optimization.hpp>
Defines an interface for all factories that allow to create instances of the type
IPostOptimizationPhase.Public Functions
-
inline virtual ~IPostOptimizationPhaseFactory()¶
-
virtual std::unique_ptr<IPostOptimizationPhase> create(IntermediateModelBuilder &modelBuilder) const = 0¶
Creates and returns a new object of type
IPostOptimizationPhase.- Parameters:
modelBuilder – A reference to an object of type
IntermediateModelBuilderthat provides access to the rules in the model- Returns:
An unique pointer to an object of type
IPostOptimizationPhasethat has been created
-
inline virtual ~IPostOptimizationPhaseFactory()¶
-
class IPostOptimizationPhaseConfig¶
- #include <post_optimization.hpp>
Defines an interface for all classes that allow to configure a method that optimizes a rule-based model globally once it has been learned.
Subclassed by SequentialPostOptimizationConfig, UnusedRuleRemovalConfig
Public Functions
-
inline virtual ~IPostOptimizationPhaseConfig()¶
-
virtual std::unique_ptr<IPostOptimizationPhaseFactory> createPostOptimizationPhaseFactory() const = 0¶
Creates and returns a new object of type
IPostOptimizationPhaseFactoryaccording to the specified configuration.- Returns:
An unique pointer to an object of type
IPostOptimizationPhaseFactorythat has been created
-
inline virtual ~IPostOptimizationPhaseConfig()¶
-
class IPostOptimization : public IPostOptimizationPhase¶
- #include <post_optimization.hpp>
Defines an interface for all classes that allow to optimize a rule-based model globally once it has been learned by carrying out several optimization phases.
Public Functions
-
inline virtual ~IPostOptimization() override¶
-
virtual IModelBuilder &getModelBuilder() const = 0¶
Returns an
IModelBuilderthat is suited for post-optimization via this object. Rules that are induced during training must be added to the returned builder.- Returns:
A reference to an object of type
IModelBuilderthat is suited for post-optimization
-
inline virtual ~IPostOptimization() override¶
-
class IPostOptimizationFactory¶
- #include <post_optimization.hpp>
Defines an interface for all factories that allow to create instances of the type
IPostOptimization.Subclassed by PostOptimizationPhaseListFactory
Public Functions
-
inline virtual ~IPostOptimizationFactory()¶
-
virtual std::unique_ptr<IPostOptimization> create(const IModelBuilderFactory &modelBuilderFactory) const = 0¶
Creates and returns a new object of type
IPostOptimization.- Parameters:
modelBuilderFactory – A reference to an object of type
IModelBuilderFactorythat allows to create the builder to be used for assembling a model- Returns:
An unique pointer to an object of type
IPostOptimizationthat has been created
-
inline virtual ~IPostOptimizationFactory()¶