mlrl.testbed_sklearn.experiments.output.label_vectors.label_vectors module

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

Provides classes for representing unique label vectors contained in a dataset that are part of output data.

class mlrl.testbed_sklearn.experiments.output.label_vectors.label_vectors.LabelVectors(values: list[tuple[str, int]])

Bases: TabularOutputData

Represents unique label vectors contained in a dataset that are part of output data.

COLUMN_FREQUENCY = 'Frequency'
COLUMN_INDEX = 'Index'
COLUMN_LABEL_VECTOR = 'Label vector'
CONTEXT = Context(include_dataset_type=False, include_prediction_scope=True, include_fold=True)
PROPERTIES = TabularProperties(name='Label vectors', file_name='label_vectors', has_header=True)
static from_histogram(histogram: LabelVectorHistogram) LabelVectors

Creates and returns LabelVectors from a given histogram.

Parameters:

histogram – The histogram

Returns:

The LabelVectors that have been created

to_table(options: Options, **kwargs) Table | None

See mlrl.testbed.experiments.output.data.TabularOutputData.to_table()

to_text(options: Options, **kwargs) str | None

See mlrl.testbed.experiments.output.data.TextualOutputData.to_text()