peppr.MedianSelector#
- class peppr.MedianSelector[source]#
- Selector that computes the median of the values. - select(values: ndarray, smaller_is_better: bool) float#
- Select the representative metric value from a set of poses. - The meaning of ‘representative’ depends on the specific - Selectorsubclass.- ABSTRACT: Must be overridden by subclasses. - Parameters:
- valuesndarray, shape=(n,), dtype=float
- The metric values to select from. May contain NaN values. The values are sorted from highest to lowest confidence. 
- smaller_is_betterbool
- Whether the smaller value is considered a better prediction. 
 
- Returns:
- float
- The selected value.