mlrl.testbed.experiments.output.sinks.sink_log module

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

Provides classes that allow writing output data to the log.

class mlrl.testbed.experiments.output.sinks.sink_log.LogSink(options: ~mlrl.util.options.Options = <mlrl.util.options.Options object>, source_factory: ~typing.Callable[[~pathlib.Path], ~mlrl.testbed.experiments.input.sources.source.Source] | None = None)

Bases: Sink

Allows to write textual output data to the log.

SourceFactory

alias of Callable[[Path], Source]

create_source(input_directory: Path) Source | None

Must be implemented by subclasses in order to create a Source that can read the data written to this sink.

Returns:

The Source that has been created or None, if no source is available

write_to_sink(state: ExperimentState, output_data: OutputData, **kwargs)

See mlrl.testbed.experiments.output.sinks.sink.Sink.write_to_sink()