Commit ba8a1cc
authored
docs: fix recall formula label in SQL metrics (#2405)
## Summary
Fixes #2404
The formula for recall was incorrectly labeled as "Precision" in the SQL
metrics documentation.
## Changes
- Fixed line 20 in
- Changed label from "Precision" to "Recall" for the formula using
reference rows as denominator
## Explanation
The two formulas represent different metrics:
**Precision** (line 16):
- Numerator: Number of matching rows
- **Denominator: Total rows in response**
- Measures: "Of all rows we returned, how many were correct?"
**Recall** (line 20):
- Numerator: Number of matching rows
- **Denominator: Total rows in reference**
- Measures: "Of all correct rows, how many did we return?"
The formula on line 20 was mislabeled as Precision but is actually the
Recall formula.
## Testing
- Verified formula definitions match standard precision/recall
definitions
- Confirmed the fix aligns with the explanation in line 23 about F1
score being the harmonic mean of precision and recall1 parent 09464cf commit ba8a1cc
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments