File feature_space.hpp¶
-
class IFeatureSpace¶
- #include <feature_space.hpp>
Defines an interface for all classes that provide access to the feature space.
Public Functions
-
inline virtual ~IFeatureSpace()¶
-
virtual std::unique_ptr<IFeatureSubspace> createSubspace(const EqualWeightVector &weights) = 0¶
Creates and returns a new subspace of this feature space.
- Parameters:
weights – A reference to an object of type
EqualWeightVectorthat provides access to the weights of individual training examples- Returns:
An unique pointer to an object of type
IFeatureSubspacethat has been created
-
virtual std::unique_ptr<IFeatureSubspace> createSubspace(const BitWeightVector &weights) = 0¶
Creates and returns a new subspace of this feature space.
- Parameters:
weights – A reference to an object of type
BitWeightVectorthat provides access to the weights of individual training examples- Returns:
An unique pointer to an object of type
IFeatureSubspacethat has been created
-
virtual std::unique_ptr<IFeatureSubspace> createSubspace(const DenseWeightVector<uint16> &weights) = 0¶
Creates and returns a new subspace of this feature space.
- Parameters:
weights – A reference to an object of type
DenseWeightVector<uint16>that provides access to the weights of individual training examples- Returns:
An unique pointer to an object of type
IFeatureSubspacethat has been created
-
virtual std::unique_ptr<IFeatureSubspace> createSubspace(const DenseWeightVector<float32> &weights) = 0¶
Creates and returns a new subspace of this feature space.
- Parameters:
weights – A reference to an object of type
DenseWeightVector<float32>that provides access to the weights of individual training examples- Returns:
An unique pointer to an object of type
IFeatureSubspacethat has been created
-
virtual IStatisticsProvider &getStatisticsProvider() const = 0¶
Returns a reference to an object of type
IStatisticsProviderthat provides access to the statistics that correspond to individual training examples in the feature space.- Returns:
A reference to an object of type
IStatisticsProvider
-
inline virtual ~IFeatureSpace()¶
-
class IFeatureSpaceFactory¶
- #include <feature_space.hpp>
Defines an interface for all classes that allow to create instances of the type
IFeatureSpace.Subclassed by TabularFeatureSpaceFactory
Public Functions
-
inline virtual ~IFeatureSpaceFactory()¶
-
virtual std::unique_ptr<IFeatureSpace> create(const IColumnWiseFeatureMatrix &featureMatrix, const IFeatureInfo &featureInfo, IStatisticsProvider &statisticsProvider) const = 0¶
Creates and returns a new object of type
IFeatureSpace.- Parameters:
featureMatrix – A reference to an object of type
IColumnWiseFeatureMatrixthat provides column-wise access to the feature values of individual training examplesfeatureInfo – A reference to an object of type
IFeatureInfothat provides information about the types of individual featuresstatisticsProvider – A reference to an object of type
IStatisticsProviderthat provides access to statistics about the quality of predictions for training examples
- Returns:
An unique pointer to an object of type
IFeatureSpacethat has been created
-
inline virtual ~IFeatureSpaceFactory()¶