File predictor_score.hpp

class IScorePredictor : public IPredictor<DensePredictionMatrix<float64>>
#include <predictor_score.hpp>

Defines an interface for all classes that allow to predict regression scores for given query examples.

Public Functions

inline virtual ~IScorePredictor() override
class IScorePredictorFactory
#include <predictor_score.hpp>

Defines an interface for all classes that allow to create instances of the type IScorePredictor.

Public Functions

inline virtual ~IScorePredictorFactory()
virtual std::unique_ptr<IScorePredictor> create(const CContiguousView<const float32> &featureMatrix, const RuleList &model, const LabelVectorSet *labelVectorSet, uint32 numLabels) const = 0

Creates and returns a new object of the type IScorePredictor.

Parameters:
  • featureMatrix – A reference to an object of type CContiguousView that stores the feature values of the query examples to predict for

  • model – A reference to an object of type RuleList that should be used to obtain predictions

  • labelVectorSet – A pointer to an object of type LabelVectorSet that stores all known label vectors or a null pointer, if no such set is available

  • numLabels – The number of labels to predict for

Returns:

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

virtual std::unique_ptr<IScorePredictor> create(const CsrView<const float32> &featureMatrix, const RuleList &model, const LabelVectorSet *labelVectorSet, uint32 numLabels) const = 0

Creates and returns a new object of the type IScorePredictor.

Parameters:
  • featureMatrix – A reference to an object of type CsrView that stores the feature values of the query examples to predict for

  • model – A reference to an object of type RuleList that should be used to obtain predictions

  • labelVectorSet – A pointer to an object of type LabelVectorSet that stores all known label vectors or a null pointer, if no such set is available

  • numLabels – The number of labels to predict for

Returns:

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

class IScorePredictorConfig : public IPredictorConfig<IScorePredictorFactory>
#include <predictor_score.hpp>

Defines an interface for all classes that allow to configure a IScorePredictor.

Public Functions

inline virtual ~IScorePredictorConfig() override