File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
frouros/detectors/concept_drift/streaming/change_detection Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 11"""Page Hinkley module."""
22
3+ from typing import Optional , Union , List
4+
5+ from frouros .callbacks .streaming .base import BaseCallbackStreaming
36from frouros .detectors .concept_drift .streaming .change_detection .base import (
47 BaseCUSUM ,
58 BaseCUSUMConfig ,
@@ -74,6 +77,18 @@ class PageHinkley(BaseCUSUM):
7477
7578 config_type = PageHinkleyConfig # type: ignore
7679
80+ def __init__ ( # noqa: D107
81+ self ,
82+ config : Optional [PageHinkleyConfig ] = None ,
83+ callbacks : Optional [
84+ Union [BaseCallbackStreaming , List [BaseCallbackStreaming ]]
85+ ] = None ,
86+ ) -> None :
87+ super ().__init__ (
88+ config = config ,
89+ callbacks = callbacks ,
90+ )
91+
7792 def _update_sum (self , error_rate : float ) -> None :
7893 self .sum_ = self .config .alpha * self .sum_ + ( # type: ignore
7994 error_rate - self .mean_error_rate .mean - self .config .delta # type: ignore
You can’t perform that action at this time.
0 commit comments