nrtk.impls.score_detections.nop_scorer
This module provides the NOPScorer class, an implementation of the ScoreDetections interface that serves as a “no operation” (NOP) scorer. The NOPScorer class is useful in testing or baseline scenarios where all input detections receive a score of zero.
- Classes:
NOPScorer: An example implementation of ScoreDetections that outputs zero scores for each provided ground truth input.
- Dependencies:
smqtk_image_io for handling bounding box objects.
nrtk.interfaces for the ScoreDetections interface.
- Usage:
Instantiate NOPScorer and use it to generate zero scores for any set of ground truth and predicted detections:
scorer = NOPScorer() scores = scorer.score(actual_detections, predicted_detections)
- Example:
nop_scorer = NOPScorer() zero_scores = nop_scorer.score(actual_detections, predicted_detections)
Classes
Example implementation of the |