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(IPartition &partition, IOutputSampling &outputSampling, IInstanceSampling &instanceSampling, IFeatureSampling &featureSampling, IFeatureSpace &featureSpace) const = 0¶
Optimizes a rule-based model globally once it has been learned.
- Parameters:
partition – 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, respectivelyoutputSampling – A reference to an object of type
IOutputSamplingthat should be used for sampling outputsinstanceSampling – 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 rulesfeatureSpace – A reference to an object of type
IFeatureSpacethat provides access to the feature space
-
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 NoPostOptimizationPhaseConfig, SequentialPostOptimizationConfig, UnusedRuleRemovalConfig
Public Functions
-
inline virtual ~IPostOptimizationPhaseConfig()¶
-
virtual std::unique_ptr<IPostOptimizationPhaseFactory> createPostOptimizationPhaseFactory(const IFeatureMatrix &featureMatrix, const IOutputMatrix &outputMatrix) const = 0¶
Creates and returns a new object of type
IPostOptimizationPhaseFactoryaccording to the specified configuration.- Parameters:
featureMatrix – A reference to an object of type
IFeatureMatrixthat provides access to the feature values of the training examplesoutputMatrix – A reference to an object of type
IOutputMatrixthat provides access to the ground truth of the training examples
- 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()¶