mlrl.common.cython.output_matrix module

@author Michael Rapp (michael.rapp.ml@gmail.com)

class mlrl.common.cython.output_matrix.OutputMatrix

Bases: object

An output matrix that stores the ground truth to be used for training a model.

get_num_cols() int

Returns the number of outputs in the output matrix.

:return The number of outputs

get_num_rows() int

Returns the number of examples in the output matrix.

:return The number of examples

is_sparse() bool

Returns whether the output matrix is sparse or not.

Returns:

True, if the output matrix is sparse, False otherwise