File feature_binning.hpp

class IFeatureBinning : public IFeatureType
#include <feature_binning.hpp>

Defines an interface for methods that assign feature values to bins.

Public Functions

inline virtual ~IFeatureBinning() override
class IFeatureBinningFactory
#include <feature_binning.hpp>

Defines an interface for all factories that allow to create instances of the type IFeatureBinning.

Public Functions

inline virtual ~IFeatureBinningFactory()
virtual std::unique_ptr<IFeatureBinning> create() const = 0

Creates and returns a new object of type IFeatureBinning.

Returns:

An unique pointer to an object of type IFeatureBinning that has been created or a null pointer, if no feature binning should be used

class IFeatureBinningConfig
#include <feature_binning.hpp>

Defines an interface for all classes that allow to configure a method that assigns feature values to bins.

Subclassed by EqualFrequencyFeatureBinningConfig, EqualWidthFeatureBinningConfig, NoFeatureBinningConfig

Public Functions

inline virtual ~IFeatureBinningConfig()
virtual std::unique_ptr<IFeatureBinningFactory> createFeatureBinningFactory(const IFeatureMatrix &featureMatrix, const ILabelMatrix &labelMatrix) const = 0

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

Parameters:
  • featureMatrix – A reference to an object of type IFeatureMatrix that provides access to the feature values of the training examples

  • labelMatrix – A reference to an object of type ILabelMatrix that provides access to the labels of the training examples

Returns:

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