MOAAnomalyDetector#

class capymoa.base.MOAAnomalyDetector[source]#

Bases: AnomalyDetector

__init__(schema=None, CLI=None, random_seed=1, moa_learner=None)[source]#
cli_help()[source]#
classmethod from_params(
schema: Any = None,
params: dict[str, Any] | None = None,
random_seed: int = 1,
) → Any[source]#

Construct an instance from parameters produced by get_params.

get_params() → dict[str, Any][source]#

Return the hyper-parameters captured from the constructor.

predict(instance)[source]#
score_instance(instance)[source]#

Returns the anomaly score for the instance.

A high score is indicative of an anomaly.

Parameters:

instance – The instance for which the anomaly score is calculated.

Returns:

The anomaly score for the instance.

train(instance)[source]#