File predictor_binary.hpp¶
-
class IBinaryPredictor : public virtual IPredictor<DensePredictionMatrix<uint8>>¶
- #include <predictor_binary.hpp>
Defines an interface for all classes that allow to predict binary labels for given query examples.
Public Functions
-
inline virtual ~IBinaryPredictor() override¶
-
inline virtual ~IBinaryPredictor() override¶
-
class IBinaryPredictorFactory¶
- #include <predictor_binary.hpp>
Defines an interface for all classes that allow to create instances of the type
IBinaryPredictor.Public Functions
-
inline virtual ~IBinaryPredictorFactory()¶
-
virtual std::unique_ptr<IBinaryPredictor> create(const CContiguousView<const float32> &featureMatrix, const RuleList &model, const LabelVectorSet *labelVectorSet, const IMarginalProbabilityCalibrationModel &marginalProbabilityCalibrationModel, const IJointProbabilityCalibrationModel &jointProbabilityCalibrationModel, uint32 numLabels) const = 0¶
Creates and returns a new object of the type
IBinaryPredictor.- Parameters:
featureMatrix – A reference to an object of type
CContiguousViewthat stores the feature values of the query examples to predict formodel – A reference to an object of type
RuleListthat should be used to obtain predictionslabelVectorSet – A pointer to an object of type
LabelVectorSetthat stores all known label vectors or a null pointer, if no such set is availablemarginalProbabilityCalibrationModel – A reference to an object of type
IMarginalProbabilityCalibrationModelthat may be used for the calibration of marginal probabilitiesjointProbabilityCalibrationModel – A reference to an object of type
IJointProbabilityCalibrationModelthat may be used for the calibration of joint probabilitiesnumLabels – The number of labels to predict for
- Returns:
An unique pointer to an object of type
IBinaryPredictorthat has been created
-
virtual std::unique_ptr<IBinaryPredictor> create(const CsrView<const float32> &featureMatrix, const RuleList &model, const LabelVectorSet *labelVectorSet, const IMarginalProbabilityCalibrationModel &marginalProbabilityCalibrationModel, const IJointProbabilityCalibrationModel &jointProbabilityCalibrationModel, uint32 numLabels) const = 0¶
Creates and returns a new object of the type
IBinaryPredictor.- Parameters:
featureMatrix – A reference to an object of type
CsrViewthat stores the feature values of the query examples to predict formodel – A reference to an object of type
RuleListthat should be used to obtain predictionslabelVectorSet – A pointer to an object of type
LabelVectorSetthat stores all known label vectors or a null pointer, if no such set is availablemarginalProbabilityCalibrationModel – A reference to an object of type
IMarginalProbabilityCalibrationModelthat may be used for the calibration of marginal probabilitiesjointProbabilityCalibrationModel – A reference to an object of type
IJointProbabilityCalibrationModelthat may be used for the calibration of joint probabilitiesnumLabels – The number of labels to predict for
- Returns:
An unique pointer to an object of type
IBinaryPredictorthat has been created
-
inline virtual ~IBinaryPredictorFactory()¶
-
class ISparseBinaryPredictor : public IPredictor<BinarySparsePredictionMatrix>¶
- #include <predictor_binary.hpp>
Defines an interface for all classes that allow to predict sparse binary labels for given query examples.
Public Functions
-
inline virtual ~ISparseBinaryPredictor() override¶
-
inline virtual ~ISparseBinaryPredictor() override¶
-
class ISparseBinaryPredictorFactory¶
- #include <predictor_binary.hpp>
Defines an interface for all classes that allow to create instances of the type
ISparseBinaryPredictor.Public Functions
-
inline virtual ~ISparseBinaryPredictorFactory()¶
-
virtual std::unique_ptr<ISparseBinaryPredictor> create(const CContiguousView<const float32> &featureMatrix, const RuleList &model, const LabelVectorSet *labelVectorSet, const IMarginalProbabilityCalibrationModel &marginalProbabilityCalibrationModel, const IJointProbabilityCalibrationModel &jointProbabilityCalibrationModel, uint32 numLabels) const = 0¶
Creates and returns a new object of the type
ISparseBinaryPredictor.- Parameters:
featureMatrix – A reference to an object of type
CContiguousViewthat stores the feature values of the query examples to predict formodel – A reference to an object of type
RuleListthat should be used to obtain predictionslabelVectorSet – A pointer to an object of type
LabelVectorSetthat stores all known label vectors or a null pointer, if no such set is availablemarginalProbabilityCalibrationModel – A reference to an object of type
IMarginalProbabilityCalibrationModelthat may be used for the calibration of marginal probabilitiesjointProbabilityCalibrationModel – A reference to an object of type
IJointProbabilityCalibrationModelthat may be used for the calibration of joint probabilitiesnumLabels – The number of labels to predict for
- Returns:
An unique pointer to an object of type
ISparseBinaryPredictorthat has been created
-
virtual std::unique_ptr<ISparseBinaryPredictor> create(const CsrView<const float32> &featureMatrix, const RuleList &model, const LabelVectorSet *labelVectorSet, const IMarginalProbabilityCalibrationModel &marginalProbabilityCalibrationModel, const IJointProbabilityCalibrationModel &jointProbabilityCalibrationModel, uint32 numLabels) const = 0¶
Creates and returns a new object of the type
ISparseBinaryPredictor.- Parameters:
featureMatrix – A reference to an object of type
CsrViewthat stores the feature values of the query examples to predict formodel – A reference to an object of type
RuleListthat should be used to obtain predictionslabelVectorSet – A pointer to an object of type
LabelVectorSetthat stores all known label vectors or a null pointer, if no such set is availablemarginalProbabilityCalibrationModel – A reference to an object of type
IMarginalProbabilityCalibrationModelthat may be used for the calibration of marginal probabilitiesjointProbabilityCalibrationModel – A reference to an object of type
IJointProbabilityCalibrationModelthat may be used for the calibration of joint probabilitiesnumLabels – The number of labels to predict for
- Returns:
An unique pointer to an object of type
ISparseBinaryPredictorthat has been created
-
inline virtual ~ISparseBinaryPredictorFactory()¶
-
class IBinaryPredictorConfig : public IPredictorConfig<IBinaryPredictorFactory>¶
- #include <predictor_binary.hpp>
Defines an interface for all classes that allow to configure an
IBinaryPredictororISparseBinaryPredictor.Subclassed by NoBinaryPredictorConfig
Public Functions
-
inline virtual ~IBinaryPredictorConfig() override¶
-
virtual std::unique_ptr<ISparseBinaryPredictorFactory> createSparsePredictorFactory(const IRowWiseFeatureMatrix &featureMatrix, uint32 numLabels) const = 0¶
Creates and returns a new object of type
ISparseBinaryPredictorFactoryaccording to the specified configuration.- Parameters:
featureMatrix – A reference to an object of type
IRowWiseFeatureMatrixthat provides row-wise access to the feature values of the query examples to predict fornumLabels – The number of labels to predict for
- Returns:
An unique pointer to an object of type
ISparseBinaryPredictorFactorythat has been created
-
inline virtual ~IBinaryPredictorConfig() override¶