axiom
Version:
Axiom AI SDK provides - an API to wrap your AI calls with observability instrumentation. - offline evals - online evals
23 lines (13 loc) • 451 B
Markdown
[**axiom v0.51.1**](../../../README.md)
***
[axiom](../../../README.md) / [scorers/aggregations](../README.md) / Mean
# Function: Mean()
> **Mean**(): [`Aggregation`](../type-aliases/Aggregation.md)\<`"mean"`\>
Computes the arithmetic mean of all trial scores.
## Returns
[`Aggregation`](../type-aliases/Aggregation.md)\<`"mean"`\>
## Example
```typescript
Scorer('accuracy', fn, { aggregation: Mean() })
// scores [0.8, 0.6, 0.7] => 0.7
```