File feature_space_tabular.hpp¶
-
class TabularFeatureSpaceFactory : public IFeatureSpaceFactory¶
- #include <feature_space_tabular.hpp>
Allows to create objects of type
IFeatureSpace
that provide access to a tabular feature space.Public Functions
-
TabularFeatureSpaceFactory(std::unique_ptr<IFeatureBinningFactory> featureBinningFactoryPtr, uint32 numThreads)¶
- Parameters:
featureBinningFactoryPtr – An unique pointer to an object of type
IFeatureBinningFactory
that allows to create implementations of the binning method to be used for assigning numerical feature values to binsnumThreads – The number of CPU threads to be used to update statistics in parallel. Must be at least 1
-
virtual std::unique_ptr<IFeatureSpace> create(const IColumnWiseFeatureMatrix &featureMatrix, const IFeatureInfo &featureInfo, IStatisticsProvider &statisticsProvider) const override¶
Creates and returns a new object of type
IFeatureSpace
.- Parameters:
featureMatrix – A reference to an object of type
IColumnWiseFeatureMatrix
that provides column-wise access to the feature values of individual training examplesfeatureInfo – A reference to an object of type
IFeatureInfo
that provides information about the types of individual featuresstatisticsProvider – A reference to an object of type
IStatisticsProvider
that provides access to statistics about the labels of the training examples
- Returns:
An unique pointer to an object of type
IFeatureSpace
that has been created
Private Members
-
const std::unique_ptr<IFeatureBinningFactory> featureBinningFactoryPtr_¶
-
TabularFeatureSpaceFactory(std::unique_ptr<IFeatureBinningFactory> featureBinningFactoryPtr, uint32 numThreads)¶