MOADriftDetector#

class capymoa.drift.base_detector.MOADriftDetector[source]#

Bases: BaseDriftDetector

A wrapper class for using MOA (Massive Online Analysis) drift detectors in CapyMOA.

__init__(moa_detector, CLI=None)[source]#
Parameters:
  • moa_detector – The MOA detector object or class identifier.

  • CLI – The command-line interface (CLI) configuration for the MOA drift detector, defaults to None

CLI_help()[source]#
add_element(element: float) None[source]#

Update the drift detector with a new input value.

Parameters:

element – A value to update the drift detector with. Usually, this is the prediction error of a model.

get_params() Dict[str, Any][source]#

Get the hyper-parameters of the drift detector.

detected_change() bool[source]#

Is the detector currently detecting a concept drift?

detected_warning() bool[source]#

Is the detector currently warning of an upcoming concept drift?

reset(clean_history: bool = False) None[source]#

Reset the drift detector.

Parameters:

clean_history – Whether to reset detection history, defaults to False