File label_matrix.hpp

class ILabelMatrix
#include <label_matrix.hpp>

Defines an interface for all label matrices.

Subclassed by IRowWiseLabelMatrix

Public Functions

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

Returns whether the label matrix is sparse or not.

Returns:

True, if the label matrix is sparse, false otherwise

virtual uint32 getNumExamples() const = 0

Returns the number of examples in the label matrix.

Returns:

The number of examples

virtual uint32 getNumLabels() const = 0

Returns the number of labels in the label matrix.

Returns:

The number of labels