NOPScorer

class nrtk.impls.score_detections.nop_scorer.NOPScorer

Example implementation of the ScoreDetection interface.

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_config

Instantiate a new instance of this class given the configuration JSON-compliant dictionary encapsulating initialization arguments.

get_config

Returns the current configuration of the NOPScorer instance.

get_default_config

Generate and return a default configuration dictionary for this class.

get_impls

Discover and return a set of classes that implement the calling class.

is_usable

Check whether this class is available for use.

score

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.