mlrl.testbed_sklearn.experiments.output.characteristics.data.matrix_label module

Author: Michael Rapp (michael.rapp.ml@gmail.com)

Provides classes that provide access to characteristics of binary values, associated with one or several labels.

class mlrl.testbed_sklearn.experiments.output.characteristics.data.matrix_label.LabelMatrix(values)

Bases: OutputMatrix

Provides access to characteristics of binary values, associated with one or several labels, that are stored in a numpy.ndarray, scipy.sparse.spmatrix or scipy.sparse.sparray.

property avg_label_cardinality: float

The average label cardinality of the label matrix.

property avg_label_imbalance_ratio: float

The average label imbalance ratio of the label matrix.

property num_distinct_label_vectors: int

The number of distinct label vectors in the label matrix.