module change_detection.evaluation.measures.detection_delay
Detection Delay Measure.
This function returns the average delay in number of observations between the beginning of a known concept drift and the first detected concept drift.
Copyright (C) 2022 Johannes Haug.
function detection_delay
detection_delay(
evaluator: float.change_detection.evaluation.change_detection_evaluator.ChangeDetectionEvaluator,
drifts: list,
n_delay: Optional[int] = None
) → float
Calculates the average delay before detecting a concept drift.
Args:
evaluator
: The ChangeDetectionEvaluator object.drifts
: List of time steps corresponding to detected concept drifts.n_delay
: This attribute is only included for consistency purposes. It is not relevant for this measure.
Returns:
float
: The average delay in number of observations between a known drift and the first detected drift.
This file was automatically generated via lazydocs.