File feature_type.hpp¶
-
class IFeatureType¶
- #include <feature_type.hpp>
Defines an interface for all classes that represent the type of a feature.
Subclassed by IFeatureBinning, NominalFeatureType, NumericalFeatureType, OrdinalFeatureType
Public Functions
-
inline virtual ~IFeatureType()¶
-
virtual std::unique_ptr<IFeatureVector> createFeatureVector(uint32 featureIndex, const FortranContiguousView<const float32> &featureMatrix) const = 0¶
Creates and returns a feature vector that stores the feature values taken from a given Fortran-contiguous matrix for a certain feature.
- Parameters:
featureIndex – The index of the feature
featureMatrix – A reference to an object of type
FortranContiguousView
that provides column-wise access to the feature values
- Returns:
An unique pointer to an object of type
IFeatureVector
that has been created
-
virtual std::unique_ptr<IFeatureVector> createFeatureVector(uint32 featureIndex, const CscView<const float32> &featureMatrix) const = 0¶
Creates and returns a feature vector that stores the feature values taken from a given CSC matrix for a certain feature.
- Parameters:
featureIndex – The index of the feature
featureMatrix – A reference to an object of type
CscView
that provides column-wise access to the feature values
- Returns:
An unique pointer to an object of type
IFeatureVector
that has been created
-
inline virtual ~IFeatureType()¶