File predictor_binary_label_wise.hpp¶
-
namespace seco¶
-
class LabelWiseBinaryPredictorConfig : public IBinaryPredictorConfig¶
- #include <predictor_binary_label_wise.hpp>
Allows to configure a predictor that predicts whether individual labels of given query examples are relevant or irrelevant by processing rules of an existing rule-based model in the order they have been learned. If a rule covers an example, its prediction (1 if the label is relevant, 0 otherwise) is applied to each label individually, if none of the previous rules has already predicted for a particular example and label.
Public Functions
-
LabelWiseBinaryPredictorConfig(const std::unique_ptr<IMultiThreadingConfig> &multiThreadingConfigPtr)¶
- Parameters:
multiThreadingConfigPtr – A reference to an unique pointer that stores the configuration of the multi-threading behavior that should be used to predict for several query examples in parallel
-
std::unique_ptr<IBinaryPredictorFactory> createPredictorFactory(const IRowWiseFeatureMatrix &featureMatrix, uint32 numLabels) const override¶
See also
IPredictorConfig::createPredictorFactory
-
std::unique_ptr<ISparseBinaryPredictorFactory> createSparsePredictorFactory(const IRowWiseFeatureMatrix &featureMatrix, uint32 numLabels) const override¶
See also
IBinaryPredictorConfig::createSparsePredictorFactory
-
bool isLabelVectorSetNeeded() const override¶
See also
IPredictorConfig::isLabelVectorSetNeeded
Private Members
-
const std::unique_ptr<IMultiThreadingConfig> &multiThreadingConfigPtr_¶
-
LabelWiseBinaryPredictorConfig(const std::unique_ptr<IMultiThreadingConfig> &multiThreadingConfigPtr)¶
-
class LabelWiseBinaryPredictorConfig : public IBinaryPredictorConfig¶