mlrl.testbed.experiments.output.sinks.sink_pickle module

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

Provides classes that allow writing output data to files by using Python’s pickle mechanism.

class mlrl.testbed.experiments.output.sinks.sink_pickle.PickleFileSink(directory: Path, options: Options = <mlrl.util.options.Options object>, create_directory: bool = False)

Bases: FileSink

Allows to write output data to a file by using Python’s pickle mechanism.

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