File feature_matrix.hpp

class IFeatureMatrix
#include <feature_matrix.hpp>

Defines an interface for all feature matrices.

Subclassed by IColumnWiseFeatureMatrix, IRowWiseFeatureMatrix

Public Functions

inline virtual ~IFeatureMatrix()
virtual bool isSparse() const = 0

Returns whether the feature matrix is sparse or not.

Returns:

True, if the feature matrix is sparse, false otherwise

virtual uint32 getNumExamples() const = 0

Returns the number of examples in the feature matrix.

Returns:

The number of examples

virtual uint32 getNumFeatures() const = 0

Returns the number of features in the feature matrix.

Returns:

The number of features