File score_vector.hpp

class IScoreVector : public Quality
#include <score_vector.hpp>

Defines an interface for all one-dimensional vectors that store the scores that may be predicted by a rule, as well as a numerical score that assess the overall quality of the rule.

Subclassed by DenseBinnedScoreVector< IndexVector >, DenseScoreVector< IndexVector >

Public Functions

inline virtual ~IScoreVector()
virtual void updatePrediction(IPrediction &prediction) const = 0

Sets the scores of a specific prediction to the scores that are stored in this vector.

Parameters:

prediction – A reference to an object of type IPrediction that should be updated

virtual void processScores(ScoreProcessor &scoreProcessor) const = 0

Passes the scores to an ScoreProcessor in order to convert them into the head of a rule.

Parameters:

scoreProcessor – A reference to an object of type ScoreProcessor, the scores should be passed to