mlrl.testbed.experiments.output.evaluation.measurements module¶
Author: Michael Rapp (michael.rapp.ml@gmail.com)
Provides classes for keeping track of several measurements according to different measures.
- class mlrl.testbed.experiments.output.evaluation.measurements.Measurements(num_values_per_measure: int)¶
Bases:
objectKeeps track of values that correspond to different measures.
- average_by_measure(measure: OutputValue) tuple[float, float]¶
Returns an average and a corresponding standard deviation for a given measure. The average is calculated as the arithmetic mean of all values that have been tracked for the measure.
- Parameters:
measure – The measure
- Returns:
An average and a corresponding standard deviation
- averages_as_dict() dict[OutputValue, float]¶
Returns a dictionary that stores an average and a corresponding standard deviation for each measure. The averages are calculated as the arithmetic mean of all values that have been tracked for an individual measure.
- Returns:
A dictionary that stores an average and a corresponding standard deviation for each measure
- values_as_dict(index: int) dict[OutputValue, float]¶
Returns a dictionary that contains the value at a specific index that has been tracked for each measure.
- Parameters:
index – The index of the value that should be returned for each measure
- Returns:
A dictionary that stores a value for each measure