File regression_matrix_row_wise.hpp¶
-
class IRowWiseRegressionMatrix : public IOutputMatrix¶
- #include <regression_matrix_row_wise.hpp>
Defines an interface for all regression matrices that provide access to the ground truth regression scores of training examples.
Subclassed by ICContiguousRegressionMatrix, ICsrRegressionMatrix
Public Functions
-
inline virtual ~IRowWiseRegressionMatrix() override¶
-
virtual std::unique_ptr<IInstanceSampling> createInstanceSampling(const IRegressionInstanceSamplingFactory &factory, const SinglePartition &partition, IStatistics &statistics, const EqualWeightVector &exampleWeights) const = 0¶
Creates and returns a new instance of the class
IInstanceSampling, based on the type of this regression matrix.- Parameters:
factory – A reference to an object of type
IClassificationInstanceSamplingFactorythat should be used to create the instancepartition – A reference to an object of type
SinglePartitionthat provides access to the indices of the training examples that are included in the training setstatistics – A reference to an object of type
IStatisticsthat provides access to statistics about the quality of predictions for training examplesexampleWeights – A reference to an object of type
EqualWeightVectorthat provides access to the weights of individual training examples
- Returns:
An unique pointer to an object of type
IInstanceSamplingthat has been created
-
virtual std::unique_ptr<IInstanceSampling> createInstanceSampling(const IRegressionInstanceSamplingFactory &factory, const SinglePartition &partition, IStatistics &statistics, const DenseWeightVector<float32> &exampleWeights) const = 0¶
Creates and returns a new instance of the class
IInstanceSampling, based on the type of this regression matrix.- Parameters:
factory – A reference to an object of type
IClassificationInstanceSamplingFactorythat should be used to create the instancepartition – A reference to an object of type
SinglePartitionthat provides access to the indices of the training examples that are included in the training setstatistics – A reference to an object of type
IStatisticsthat provides access to statistics about the quality of predictions for training examplesexampleWeights – A reference to an object of type
DenseWeightVector<float32>that provides access to the weights of individual training examples
- Returns:
An unique pointer to an object of type
IInstanceSamplingthat has been created
-
virtual std::unique_ptr<IInstanceSampling> createInstanceSampling(const IRegressionInstanceSamplingFactory &factory, BiPartition &partition, IStatistics &statistics, const EqualWeightVector &exampleWeights) const = 0¶
Creates and returns a new instance of the class
IInstanceSampling, based on the type of this regression matrix.- Parameters:
factory – A reference to an object of type
IRegressionInstanceSamplingFactorythat should be used to create the instancepartition – A reference to an object of type
BiPartitionthat provides access to the indices of the training examples that are included in the training set and the holdout set, respectivelystatistics – A reference to an object of type
IStatisticsthat provides access to statistics about the quality of predictions for training examplesexampleWeights – A reference to an object of type
EqualWeightVectorthat provides access to the weights of individual training examples
- Returns:
An unique pointer to an object of type
IInstanceSamplingthat has been created
-
virtual std::unique_ptr<IInstanceSampling> createInstanceSampling(const IRegressionInstanceSamplingFactory &factory, BiPartition &partition, IStatistics &statistics, const DenseWeightVector<float32> &exampleWeights) const = 0¶
Creates and returns a new instance of the class
IInstanceSampling, based on the type of this regression matrix.- Parameters:
factory – A reference to an object of type
IRegressionInstanceSamplingFactorythat should be used to create the instancepartition – A reference to an object of type
BiPartitionthat provides access to the indices of the training examples that are included in the training set and the holdout set, respectivelystatistics – A reference to an object of type
IStatisticsthat provides access to statistics about the quality of predictions for training examplesexampleWeights – A reference to an object of type
DenseWeightVector<float32>that provides access to the weights of individual training examples
- Returns:
An unique pointer to an object of type
IInstanceSamplingthat has been created
-
virtual std::unique_ptr<IPartitionSampling> createPartitionSampling(const IRegressionPartitionSamplingFactory &factory) const = 0¶
Creates and returns a new instance of the class
IPartitionSampling, based on the type of this regression matrix.- Parameters:
factory – A reference to an object of type
IRegressionPartitionSamplingFactorythat should be used to create the instance- Returns:
An unique pointer to an object of type
IPartitionSamplingthat has been created
-
virtual std::unique_ptr<IStatisticsProvider> createStatisticsProvider(const IRegressionStatisticsProviderFactory &factory) const = 0¶
Creates and returns a new instance of the class
IStatisticsProvider, based on the type of this output matrix.- Parameters:
factory – A reference to an object of type
IRegressionStatisticsProviderFactorythat should be used to create the instance- Returns:
An unique pointer to an object of type
IStatisticsProviderthat has been created
-
inline virtual ~IRowWiseRegressionMatrix() override¶