File predictor_binary_auto.hpp

namespace boosting
class AutomaticBinaryPredictorConfig : public IBinaryPredictorConfig
#include <predictor_binary_auto.hpp>

Allows to configure a predictor that automatically decides for a method that is used to predict whether individual labels of given query examples are relevant or not.

Public Functions

AutomaticBinaryPredictorConfig(ReadableProperty<IClassificationLossConfig> lossConfig, ReadableProperty<IMultiThreadingConfig> multiThreadingConfig)
Parameters:
  • lossConfig – A ReadableProperty that allows to access the IClassificationLossConfig that stores the configuration of the loss function

  • 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<IClassificationLossConfig> lossConfig_
const ReadableProperty<IMultiThreadingConfig> multiThreadingConfig_