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

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

Provides classes for writing characteristics of binary predictions to one or several sinks.

class mlrl.testbed_sklearn.experiments.output.characteristics.data.writer_prediction.PredictionCharacteristicsWriter(*extractors: DataExtractor)

Bases: ResultWriter

Allows to write the characteristics of binary predictions to one or several sinks.

class DefaultExtractor

Bases: DataExtractor

The extractor to be used by a PredictionCharacteristicsWriter, by default.

extract_data(state: ExperimentState, _: list[Sink]) list[tuple[ExperimentState, OutputData]]

See mlrl.testbed.experiments.output.writer.DataExtractor.extract_data()

class InputExtractor(properties: TabularProperties, context: Context)

Bases: TabularDataExtractor

Uses TabularInputData that has previously been loaded via an input reader.

extract_data(state: ExperimentState, sinks: list[Sink]) list[tuple[ExperimentState, OutputData]]

See mlrl.testbed.experiments.output.writer.DataExtractor.extract_data()