mlrl.testbed.experiments.input.reader module¶
Author Michael Rapp (michael.rapp.ml@gmail.com)
Provides classes for reading input data.
- class mlrl.testbed.experiments.input.reader.InputReader(input_data: InputData, *sources: Source)¶
Bases:
objectAllows to read input data from one or several sources. If multiple sources are used, they are accessed in the given order until any input data can successfully be read.
- is_available(state: ExperimentState) bool¶
Checks whether the input data is available or not.
- Parameters:
state – The current state of the experiment
- Returns:
True, if the input data is available, False otherwise
- read(state: ExperimentState) ExperimentState¶
Reads the input data.
- Parameters:
state – The state that should be used to store the input data
- Returns:
A copy of the given state that stores the input data