File partition_sampling_auto.hpp

namespace boosting
class AutomaticPartitionSamplingConfig : public IClassificationPartitionSamplingConfig, public IRegressionPartitionSamplingConfig
#include <partition_sampling_auto.hpp>

Allows to configure a method that automatically decides for a method that partitions the available training examples into a training set and a holdout set, depending on whether a holdout set is needed and depending on the loss function.

Public Functions

AutomaticPartitionSamplingConfig(ReadableProperty<RNGConfig> rngConfig, ReadableProperty<IGlobalPruningConfig> globalPruningConfig, ReadableProperty<IMarginalProbabilityCalibratorConfig> marginalProbabilityCalibratorConfig, ReadableProperty<IJointProbabilityCalibratorConfig> jointProbabilityCalibratorConfig)
Parameters:
  • rngConfig – A ReadableProperty that allows to access the RNGConfig that stores the configuration of random number generators

  • globalPruningConfig – A ReadableProperty that allows to access the IGlobalPruningConfig that stores the configuration of the method that is used for pruning entire rules

  • marginalProbabilityCalibratorConfig – A ReadableProperty that allows to access the IMarginalProbabilityCalibratorConfig that stores the configuration of the calibrator that is used to fit a model for the calibration of marginal probabilities

  • jointProbabilityCalibratorConfig – A ReadableProperty that allows to access the IJointProbabilityCalibratorConfig that stores the configuration of the calibrator that is used to fit a model for the calibration of joint probabilities

std::unique_ptr<IClassificationPartitionSamplingFactory> createClassificationPartitionSamplingFactory() const override

See also

IClassificationPartitionSamplingConfig::createClassificationPartitionSamplingFactory

std::unique_ptr<IRegressionPartitionSamplingFactory> createRegressionPartitionSamplingFactory() const override

See also

IRegressionPartitionSamplingConfig::createClassificationPartitionSamplingFactory

Private Members

const ReadableProperty<RNGConfig> rngConfig_
const ReadableProperty<IGlobalPruningConfig> globalPruningConfig_
const ReadableProperty<IMarginalProbabilityCalibratorConfig> marginalProbabilityCalibratorConfig_
const ReadableProperty<IJointProbabilityCalibratorConfig> jointProbabilityCalibratorConfig_