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, MultiThreadingSettings multiThreadingSettings)
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 bins

  • multiThreadingSettings – An object of type MultiThreadingSettings that stores the settings to be used for updating statistics in parallel

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 examples

  • featureInfo – A reference to an object of type IFeatureInfo that provides information about the types of individual features

  • statisticsProvider – A reference to an object of type IStatisticsProvider that provides access to statistics about the quality of predictions for training examples

Returns:

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

Private Members

const std::unique_ptr<IFeatureBinningFactory> featureBinningFactoryPtr_
const MultiThreadingSettings multiThreadingSettings_