File predictor_binary_output_wise.hpp

namespace seco
class OutputWiseBinaryPredictorConfig : public IBinaryPredictorConfig
#include <predictor_binary_output_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

OutputWiseBinaryPredictorConfig(ReadableProperty<IMultiThreadingConfig> multiThreadingConfig)
Parameters:

multiThreadingConfig – A ReadableProperty that allows to access the IMultiThreadingConfig 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 numOutputs) 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 ReadableProperty<IMultiThreadingConfig> multiThreadingConfig_