AnomalyDetector#

class capymoa.base.AnomalyDetector[source]#

Bases: ABC

Abstract base class for anomaly detector.

Attributes: - schema: The schema representing the instances. Defaults to None. - random_seed: The random seed for reproducibility. Defaults to 1.

__init__(schema: Schema, random_seed=1)[source]#
abstract train(instance: Instance)[source]#
abstract predict(instance: Instance) int | None[source]#
abstract score_instance(instance: Instance) float64[source]#