module change_detection.tornado.seqdrift2
SeqDrift2 Drift Detection Method.
The source code was adopted from tornado, please cite:
The Tornado Framework By Ali Pesaranghader University of Ottawa, Ontario, Canada E-mail: apesaran -at- uottawa -dot- ca / alipsgh -at- gmail -dot- com
Original Paper: Pears, Russel, Sripirakas Sakthithasan, and Yun Sing Koh. "Detecting concept change in dynamic data streams." Published in: Machine Learning 97.3 (2014): 259-293. URL: https://link.springer.com/article/10.1007/s10994-013-5433-9
Copyright (C) 2022 Johannes Haug.
class SeqDrift2
SeqDrift2 change detector.
method SeqDrift2.__init__
__init__(
delta: float = 0.01,
block_size: int = 200,
reset_after_drift: bool = False
)
Inits the change detector.
Args:
delta
: Todo (left unspecified by the Tornado library).block_size
: Todo (left unspecified by the Tornado library).reset_after_drift
: A boolean indicating if the change detector will be reset after a drift was detected.
method SeqDrift2.detect_change
detect_change() → bool
Detects global concept drift.
Returns:
bool
: True, if a concept drift was detected, False otherwise.
method SeqDrift2.detect_partial_change
detect_partial_change() → Tuple[bool, list]
Detects partial concept drift.
Notes:
SeqDrift2 does not detect partial change.
method SeqDrift2.detect_warning_zone
detect_warning_zone() → bool
Detects a warning zone.
Notes:
SeqDrift2 does not raise warnings.
method SeqDrift2.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 SeqDrift2.reset
reset()
Resets the change detector.
This file was automatically generated via lazydocs.