module change_detection.skmultiflow.skmultiflow_change_detector
Scikit-Multiflow Change Detection Model Wrapper.
This module contains a wrapper class for scikit-multiflow concept drift detection methods.
Copyright (C) 2022 Johannes Haug.
class SkmultiflowChangeDetector
Wrapper class for scikit-multiflow change detection classes.
Attributes:
detector
(BaseDriftDetector): The scikit-multiflow concept drift detector object.
method SkmultiflowChangeDetector.__init__
__init__(
detector: skmultiflow.drift_detection.base_drift_detector.BaseDriftDetector,
reset_after_drift: bool = False
)
Inits the wrapper.
Args:
detector
: The scikit-multiflow concept drift detector object.reset_after_drift
: A boolean indicating if the change detector will be reset after a drift was detected.
method SkmultiflowChangeDetector.detect_change
detect_change() → bool
Detects global concept drift.
Returns:
bool
: True, if a concept drift was detected, False otherwise.
method SkmultiflowChangeDetector.detect_partial_change
detect_partial_change() → Tuple[bool, list]
Detects partial concept drift.
Notes:
Scikit-multiflow change detectors do not detect partial change.
method SkmultiflowChangeDetector.detect_warning_zone
detect_warning_zone() → bool
Detects a warning zone.
Returns:
bool
: True, if the change detector has detected a warning zone, False otherwise.
method SkmultiflowChangeDetector.partial_fit
partial_fit(pr_scores: List[bool])
Updates the change detector.
Args:
pr_scores
: A boolean vector indicating correct predictions. 'True' values indicate that the prediction by the online learner was correct, otherwise the vector contains 'False'.
method SkmultiflowChangeDetector.reset
reset()
Resets the change detector.
This file was automatically generated via lazydocs.