> For the complete documentation index, see [llms.txt](https://docs.seldon.ai/alibi-detect/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.seldon.ai/alibi-detect/api-reference/utils/metrics.md).

# alibi\_detect.utils.metrics

## Functions

### `accuracy`

```python
accuracy(y_true: numpy.ndarray, y_pred: numpy.ndarray) -> float
```

| Name     | Type            | Default | Description |
| -------- | --------------- | ------- | ----------- |
| `y_true` | `numpy.ndarray` |         |             |
| `y_pred` | `numpy.ndarray` |         |             |

**Returns**

* Type: `float`
