File example_weights.hpp¶
-
class IExampleWeights¶
- #include <example_weights.hpp>
Defines an interface for all classes that provide access to the weights of individual training examples.
Subclassed by IEqualExampleWeights, IRealValuedExampleWeights
Public Functions
-
inline virtual ~IExampleWeights()¶
-
virtual std::unique_ptr<IInstanceSampling> createInstanceSampling(const IClassificationInstanceSamplingFactory &factory, const IRowWiseLabelMatrix &labelMatrix, IStatistics &statistics, IPartition &partition) const = 0¶
Creates and returns a new instance of the class
IInstanceSamplingthat can be used in classification problems, based on the type of this partition.- Parameters:
factory – A reference to an object of type
IClassificationInstanceSamplingFactorythat should be used to create the instancelabelMatrix – A reference to an object of type
IRowWiseLabelMatrixthat provides row-wise access to the labels of individual training examplesstatistics – A reference to an object of type
IStatisticsthat provides access to the statistics which serve as a basis for learning rulespartition – A reference to an object of type
IPartitionthat provides access to the indices of the training examples that are included in the training and holdout set, respectively
- Returns:
An unique pointer to an object of type
IInstanceSamplingthat has been created
-
virtual std::unique_ptr<IInstanceSampling> createInstanceSampling(const IRegressionInstanceSamplingFactory &factory, const IRowWiseRegressionMatrix ®ressionMatrix, IStatistics &statistics, IPartition &partition) const = 0¶
Creates and returns a new instance of the class
IInstanceSamplingthat can be used in classification problems, based on the type of this partition.- Parameters:
factory – A reference to an object of type
IRegressionInstanceSamplingFactorythat should be used to create the instanceregressionMatrix – A reference to an object of type
IRowWiseRegressionMatrixthat provides row-wise access to the regression scores of individual training examplesstatistics – A reference to an object of type
IStatisticsthat provides access to the statistics which serve as a basis for learning rulespartition – A reference to an object of type
IPartitionthat provides access to the indices of the training examples that are included in the training and holdout set, respectively
- Returns:
An unique pointer to an object of type
IInstanceSamplingthat has been created
-
inline virtual ~IExampleWeights()¶