File feature_matrix_row_wise.hpp¶
-
class IRowWiseFeatureMatrix : public IFeatureMatrix¶
- #include <feature_matrix_row_wise.hpp>
Defines an interface for all feature matrices that provide row-wise access to the feature values of examples.
Subclassed by ICContiguousFeatureMatrix, ICsrFeatureMatrix
Public Functions
-
inline virtual ~IRowWiseFeatureMatrix() override¶
-
virtual std::unique_ptr<IBinaryPredictor> createBinaryPredictor(const IBinaryPredictorFactory &factory, const IRuleModel &ruleModel, const IOutputSpaceInfo &outputSpaceInfo, 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 feature matrix.- Parameters:
factory – A reference to an object of type
IBinaryPredictorFactorythat should be used to create the instanceruleModel – A reference to an object of type
IRuleModelthat should be used to obtain predictionsoutputSpaceInfo – A reference to an object of type
IOutputSpaceInfothat provides information about the output space that may be used as a basis for making 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 IRuleModel &ruleModel, const IOutputSpaceInfo &outputSpaceInfo, 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 feature matrix.- Parameters:
factory – A reference to an object of type
ISparseBinaryPredictorFactorythat should be used to create the instanceruleModel – A reference to an object of type
IRuleModelthat should be used to obtain predictionsoutputSpaceInfo – A reference to an object of type
IOutputSpaceInfothat provides information about the output space that may be used as a basis for making 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 IRuleModel &ruleModel, const IOutputSpaceInfo &outputSpaceInfo, uint32 numOutputs) const = 0¶
Creates and returns a new instance of the class
IScorePredictor, based on the type of this feature matrix.- Parameters:
factory – A reference to an object of type
IScorePredictorFactorythat should be used to create the instanceruleModel – A reference to an object of type
IRuleModelthat should be used to obtain predictionsoutputSpaceInfo – A reference to an object of type
IOutputSpaceInfothat provides information about the output space that may be used as a basis for making 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 IRuleModel &ruleModel, const IOutputSpaceInfo &outputSpaceInfo, 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 feature matrix.- Parameters:
factory – A reference to an object of type
IProbabilityPredictorFactorythat should be used to create the instanceruleModel – A reference to an object of type
IRuleModelthat should be used to obtain predictionsoutputSpaceInfo – A reference to an object of type
IOutputSpaceInfothat provides information about the output space that may be used as a basis for making 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 ~IRowWiseFeatureMatrix() override¶