> For the complete documentation index, see [llms.txt](https://docs.layerlens.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.layerlens.ai/more-in-this-section-6/confidence-weighted-aggregation.md).

# Recipe: Confidence-weighted aggregation

Recipe — confidence-weighted aggregation for noisy judges.

When your judge returns a confidence score along with the verdict, weight by confidence:

```python
agg = sum(v * c for v, c in zip(verdicts, confidences)) / sum(confidences)
```

Use sparingly — confidence-weighting hides low-quality judges instead of fixing them. GEPA-optimize first.

## See also

* [Concept: Judges](/8.-evaluate-score-the-outputs/judges-1.md)
