Metric
DetectionCount
Count of detection, possibly in excess or deviation of a target count.
Quickstart
python
from sktime.performance_metrics.detection import DetectionCount
estimator = DetectionCount(target=0, excess_only=False)Parameters(2)
- targetint, default=0
Target number of detections. If 0, the count is the absolute number of detections. If positive, the count reported is, by default, the absolute difference between the number of detections and the target. If the
excess_onlyparameter is set toTrue, the count is the number of detections in excess of the target if larger, otherwise zero.- excess_onlybool, default=False
If False, the count is the absolute difference between the
targetand the number of detections. If True, the count is the number of detections in excess of the target if larger, otherwise zero.