module change_detection.evaluation.measures.detected_change_rate

Detected Change Rate Measure.

This function returns the fraction of correctly detected known drifts. The detected change rate measure is sometimes also called recall or false positive rate.

Copyright (C) 2022 Johannes Haug.


function detected_change_rate

detected_change_rate(
    evaluator: float.change_detection.evaluation.change_detection_evaluator.ChangeDetectionEvaluator,
    drifts: list,
    n_delay: int
) → float

Calculates the rate of correctly detected known concept drifts.

Args:

  • evaluator: The ChangeDetectionEvaluator object.
  • drifts: List of time steps corresponding to detected concept drifts.
  • n_delay: The number of observations after a known concept drift, during which we count the detections made by the model as true positives.

Returns:

  • float: The rate of correctly detected known concept drifts

This file was automatically generated via lazydocs.