ADWIN#
- class frouros.detectors.concept_drift.streaming.window_based.ADWIN(config: Optional[ADWINConfig] = None, callbacks: Optional[Union[BaseCallbackStreaming, List[BaseCallbackStreaming]]] = None)#
ADWIN (ADaptive WINdowing) [bifet2007learning] detector.
- References:
[bifet2007learning]Bifet, Albert, and Ricard Gavalda. “Learning from time-changing data with adaptive windowing.” Proceedings of the 2007 SIAM international conference on data mining. Society for Industrial and Applied Mathematics, 2007.
- config_type#
alias of
ADWINConfig
- property additional_vars: Optional[Dict[str, Any]]#
Additional variables property.
- Returns:
additional variables
- Return type:
Optional[Dict[str, Any]]
- property callbacks: Optional[List[BaseCallback]]#
Callbacks property.
- Returns:
callbacks
- Return type:
Optional[List[BaseCallback]]
- property config: BaseConceptDriftConfig#
Config property.
- Returns:
configuration parameters of the estimator
- Return type:
BaseConceptDriftConfig
- property num_instances: int#
Number of instances counter property.
- Returns:
Number of instances counter value
- Return type:
int
- property status: Dict[str, bool]#
Status property.
- Returns:
status dict
- Return type:
Dict[str, bool]
- update(value: Union[int, float], **kwargs) Dict[str, Any]#
Update method.
- Parameters:
value (Union[int, float]) – value to update detector
- property buckets: deque#
Buckets queue property.
- Returns:
buckets queue
- Return type:
deque
- property total: float#
Total value property.
- Returns:
total value
- Return type:
float
- property variance: float#
Variance value property.
- Returns:
variance value
- Return type:
float
- property variance_window: float#
Variance in window value property.
- Returns:
variance in window value
- Return type:
float
- property width: int#
Width value property.
- Returns:
width value
- Return type:
int
- property num_buckets: int#
Number of buckets property.
- Returns:
number of buckets
- Return type:
int
- property num_max_buckets: int#
Maximum number of buckets property.
- Returns:
maximum number of buckets
- Return type:
int
- reset() None#
Reset method.