File output_matrix.hpp

class IOutputMatrix
#include <output_matrix.hpp>

Defines an interface for all output matrices that store the ground truth to be used for training a model.

Subclassed by IRowWiseLabelMatrix, IRowWiseRegressionMatrix

Public Functions

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

Returns whether the output matrix is sparse or not.

Returns:

True, if the output matrix is sparse, false otherwise

virtual uint32 getNumExamples() const = 0

Returns the number of examples in the output matrix.

Returns:

The number of examples

virtual uint32 getNumOutputs() const = 0

Returns the number of outputs in the output matrix.

Returns:

The number of outputs