peppr.Selector#
- class peppr.Selector[source]#
The base class for all pose selectors.
Its purpose is to aggregate metric values for multiple poses into a single scalar value.
- Attributes:
- namestr
The name of the selector. Used for displaying the results via the
Evaluator
. ABSTRACT: Must be overridden by subclasses.
- abstractmethod 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
Selector
subclass.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.