mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-27 23:18:37 +00:00
9 lines
253 B
YAML
9 lines
253 B
YAML
---
|
|
features:
|
|
- |
|
|
Adds support for the F1 metric to `EvaluationResult.calculate_metrics(...)`:
|
|
```python
|
|
from haystack.evaluation.metrics import Metric
|
|
f1_metric = eval_result.calculate_metrics(Metric.F1, output_key="answers")
|
|
```
|