# `AnomalyDetectionEvaluator`

### *class* capymoa.evaluation.AnomalyDetectionEvaluator[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/evaluation/evaluation.py#L417)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

Wrapper for the Anomaly (AUC) Performance Evaluator from MOA. By default, it uses the
BasicAUCImbalancedPerformanceEvaluator

#### \_\_init_\_(schema: [Schema](capymoa.stream.Schema.md#capymoa.stream.Schema) = None, window_size=None)[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/evaluation/evaluation.py#L423)

#### auc()[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/evaluation/evaluation.py#L517)

#### get_instances_seen()[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/evaluation/evaluation.py#L464)

#### metrics()[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/evaluation/evaluation.py#L502)

#### metrics_dict()[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/evaluation/evaluation.py#L508)

#### metrics_header()[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/evaluation/evaluation.py#L494)

#### metrics_per_window()[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/evaluation/evaluation.py#L514)

#### s_auc()[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/evaluation/evaluation.py#L521)

#### update(y_target_index: [int](https://docs.python.org/3/builtins/functions.html#int), score: [float](https://docs.python.org/3/builtins/functions.html#float))[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/evaluation/evaluation.py#L467)

Update the evaluator with the ground-truth and the prediction.

* **Parameters:**
  * **y_target_index** – The ground-truth class index. This is NOT
    the actual class value, but the index of the class value in the
    schema.
  * **score** – The predicted scores. Should be in the range [0, 1].
