NOPScorer
- class nrtk.impls.score_detections.nop_scorer.NOPScorer
Example implementation of the
ScoreDetectioninterface.An instance of this class acts as a functor to generate scores for a specific metric based on a given set of ground truth and predicted detections.
This class, in particular, serves as a pass-through “no operation” (NOP) scorer.
Methods
from_configInstantiate a new instance of this class given the configuration JSON-compliant dictionary encapsulating initialization arguments.
Returns the current configuration of the NOPScorer instance.
get_default_configGenerate and return a default configuration dictionary for this class.
get_implsDiscover and return a set of classes that implement the calling class.
is_usableCheck whether this class is available for use.
Return sequence of zeros equal to the length of the ground truth input.
- get_config() dict[str, Any]
Returns the current configuration of the NOPScorer instance.
- Returns:
dict[str, Any]: Configuration dictionary with current settings.
- score(actual: Sequence[Sequence[tuple[AxisAlignedBoundingBox, dict[Hashable, Any]]]], predicted: Sequence[Sequence[tuple[AxisAlignedBoundingBox, dict[Hashable, float]]]]) Sequence[float]
Return sequence of zeros equal to the length of the ground truth input.