File heuristic_accuracy.hpp

namespace seco
class AccuracyConfig : public seco::IHeuristicConfig
#include <heuristic_accuracy.hpp>

Allows to configure a heuristic that measures the fraction of correctly predicted labels among all labels, i.e., in contrast to the “Precision” metric, examples that are not covered by a rule are taken into account as well.

This heuristic is used in the pruning phase of IREP (“Incremental Reduced Error Pruning”, Fürnkranz, Widmer 1994, see https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.43.7813&rep=rep1&type=pdf).

Public Functions

virtual std::unique_ptr<IHeuristicFactory> createHeuristicFactory() const override

Creates and returns a new object of type IHeuristicFactory according to the specified configuration.

Returns:

An unique pointer to an object of type IHeuristicFactory that has been created