File feature_matrix_column_wise.hpp

class IColumnWiseFeatureMatrix : public IFeatureMatrix
#include <feature_matrix_column_wise.hpp>

Defines an interface for all feature matrices that provide column-wise access to the feature values of examples.

Subclassed by ICscFeatureMatrix, IFortranContiguousFeatureMatrix

Public Functions

inline virtual ~IColumnWiseFeatureMatrix() override
virtual std::unique_ptr<IFeatureVector> createFeatureVector(uint32 featureIndex, const IFeatureType &featureType) const = 0

Creates and returns a feature vector that stores the feature values of the available examples for a certain feature.

Parameters:
  • featureIndex – The index of the feature

  • featureType – A reference to an object of type IFeatureType that represents the type of the feature

Returns:

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