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(source: Source, input_data: Any)¶
Bases:
objectAllows to read input data from a source.
- 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