File feature_sampling_no.hpp

class NoFeatureSamplingConfig : public IFeatureSamplingConfig
#include <feature_sampling_no.hpp>

Allows to configure a method for sampling features that does not perform any sampling, but includes all features.

Public Functions

virtual std::unique_ptr<IFeatureSamplingFactory> createFeatureSamplingFactory(const IFeatureMatrix &featureMatrix) const override

Creates and returns a new object of type IFeatureSamplingFactory according to the specified configuration.

Parameters:

featureMatrix – A reference to an object of type IFeatureMatrix that provides access to the features of the training examples

Returns:

An unique pointer to an object of type IFeatureSamplingFactory that has been created

virtual bool isSamplingUsed() const override

Returns whether feature sampling is used or not.

Returns:

True, if feature sampling is used, false otherwise