File output_space_info.hpp¶
-
class IOutputSpaceInfo¶
- #include <output_space_info.hpp>
Defines an interface for all classes that provide information about the output space that may be used as a basis for making predictions.
Subclassed by ILabelVectorSet, INoOutputSpaceInfo
Public Functions
-
inline virtual ~IOutputSpaceInfo()¶
-
virtual std::unique_ptr<IJointProbabilityCalibrator> createJointProbabilityCalibrator(const IJointProbabilityCalibratorFactory &factory, const IMarginalProbabilityCalibrationModel &marginalProbabilityCalibrationModel) const = 0¶
Creates and returns a new instance of the class
IJointProbabilityCalibrator, based on the type of this information about the output space.- Parameters:
factory – A reference to an object of type
IJointProbabilityCalibratorFactorythat should be used to create the instancemarginalProbabilityCalibrationModel – A reference to an object of type
IMarginalProbabilityCalibrationModelthat may be used for the calibration of marginal probabilities
- Returns:
An unique pointer to an object of type
IJointProbabilityCalibratorthat has been created
-
virtual std::unique_ptr<IBinaryPredictor> createBinaryPredictor(const IBinaryPredictorFactory &factory, const CContiguousView<const float32> &featureMatrix, const RuleList &model, const IMarginalProbabilityCalibrationModel &marginalProbabilityCalibrationModel, const IJointProbabilityCalibrationModel &jointProbabilityCalibrationModel, uint32 numLabels) const = 0¶
Creates and returns a new instance of the class
IBinaryPredictor, based on the type of this information about the output space.- Parameters:
factory – A reference to an object of type
IBinaryPredictorFactorythat should be used to create the instancefeatureMatrix – A reference to an object of type
CContiguousViewthat provides row-wise access to the features of the query examplesmodel – A reference to an object of type
RuleListthat should be used to obtain predictionsmarginalProbabilityCalibrationModel – 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> createBinaryPredictor(const IBinaryPredictorFactory &factory, const CsrView<const float32> &featureMatrix, const RuleList &model, const IMarginalProbabilityCalibrationModel &marginalProbabilityCalibrationModel, const IJointProbabilityCalibrationModel &jointProbabilityCalibrationModel, uint32 numLabels) const = 0¶
Creates and returns a new instance of the class
IBinaryPredictor, based on the type of this information about the output space.- Parameters:
factory – A reference to an object of type
IBinaryPredictorFactorythat should be used to create the instancefeatureMatrix – A reference to an object of type
CsrViewthat provides row-wise access to the features of the query examplesmodel – A reference to an object of type
RuleListthat should be used to obtain predictionsmarginalProbabilityCalibrationModel – 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<ISparseBinaryPredictor> createSparseBinaryPredictor(const ISparseBinaryPredictorFactory &factory, const CContiguousView<const float32> &featureMatrix, const RuleList &model, const IMarginalProbabilityCalibrationModel &marginalProbabilityCalibrationModel, const IJointProbabilityCalibrationModel &jointProbabilityCalibrationModel, uint32 numLabels) const = 0¶
Creates and returns a new instance of the class
ISparseBinaryPredictor, based on the type of this information about the output space.- Parameters:
factory – A reference to an object of type
ISparseBinaryPredictorFactorythat should be used to create the instancefeatureMatrix – A reference to an object of type
CContiguousViewthat provides row-wise access to the features of the query examplesmodel – A reference to an object of type
RuleListthat should be used to obtain predictionsmarginalProbabilityCalibrationModel – 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> createSparseBinaryPredictor(const ISparseBinaryPredictorFactory &factory, const CsrView<const float32> &featureMatrix, const RuleList &model, const IMarginalProbabilityCalibrationModel &marginalProbabilityCalibrationModel, const IJointProbabilityCalibrationModel &jointProbabilityCalibrationModel, uint32 numLabels) const = 0¶
Creates and returns a new instance of the class
ISparseBinaryPredictor, based on the type of this information about the output space.- Parameters:
factory – A reference to an object of type
ISparseBinaryPredictorFactorythat should be used to create the instancefeatureMatrix – A reference to an object of type
CsrViewthat provides row-wise access to the features of the query examplesmodel – A reference to an object of type
RuleListthat should be used to obtain predictionsmarginalProbabilityCalibrationModel – 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<IScorePredictor> createScorePredictor(const IScorePredictorFactory &factory, const CContiguousView<const float32> &featureMatrix, const RuleList &model, uint32 numOutputs) const = 0¶
Creates and returns a new instance of the class
IScorePredictor, based on the type of this information about the output space.- Parameters:
factory – A reference to an object of type
IScorePredictorFactorythat should be used to create the instancefeatureMatrix – A reference to an object of type
CContiguousViewthat provides row-wise access to the features of the query examplesmodel – A reference to an object of type
RuleListthat should be used to obtain predictionsnumOutputs – The number of outputs to predict for
- Returns:
An unique pointer to an object of type
IScorePredictorthat has been created
-
virtual std::unique_ptr<IScorePredictor> createScorePredictor(const IScorePredictorFactory &factory, const CsrView<const float32> &featureMatrix, const RuleList &model, uint32 numOutputs) const = 0¶
Creates and returns a new instance of the class
IScorePredictor, based on the type of this information about the output space.- Parameters:
factory – A reference to an object of type
IScorePredictorFactorythat should be used to create the instancefeatureMatrix – A reference to an object of type
CsrViewthat provides row-wise access to the features of the query examplesmodel – A reference to an object of type
RuleListthat should be used to obtain predictionsnumOutputs – The number of outputs to predict for
- Returns:
An unique pointer to an object of type
IScorePredictorthat has been created
-
virtual std::unique_ptr<IProbabilityPredictor> createProbabilityPredictor(const IProbabilityPredictorFactory &factory, const CContiguousView<const float32> &featureMatrix, const RuleList &model, const IMarginalProbabilityCalibrationModel &marginalProbabilityCalibrationModel, const IJointProbabilityCalibrationModel &jointProbabilityCalibrationModel, uint32 numLabels) const = 0¶
Creates and returns a new instance of the class
IProbabilityPredictor, based on the type of this information about the output space.- Parameters:
factory – A reference to an object of type
IProbabilityPredictorFactorythat should be used to create the instancefeatureMatrix – A reference to an object of type
CContiguousViewthat provides row-wise access to the features of the query examplesmodel – A reference to an object of type
RuleListthat should be used to obtain predictionsmarginalProbabilityCalibrationModel – 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
IProbabilityPredictorthat has been created
-
virtual std::unique_ptr<IProbabilityPredictor> createProbabilityPredictor(const IProbabilityPredictorFactory &factory, const CsrView<const float32> &featureMatrix, const RuleList &model, const IMarginalProbabilityCalibrationModel &marginalProbabilityCalibrationModel, const IJointProbabilityCalibrationModel &jointProbabilityCalibrationModel, uint32 numLabels) const = 0¶
Creates and returns a new instance of the class
IProbabilityPredictor, based on the type of this information about the output space.- Parameters:
factory – A reference to an object of type
IProbabilityPredictorFactorythat should be used to create the instancefeatureMatrix – A reference to an object of type
CsrViewthat provides row-wise access to the features of the query examplesmodel – A reference to an object of type
RuleListthat should be used to obtain predictionsmarginalProbabilityCalibrationModel – 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
IProbabilityPredictorthat has been created
-
inline virtual ~IOutputSpaceInfo()¶