Add Gitea CI deployment workflow and update dependencies
Some checks failed
Deploy Lakehouse Docs / build-and-deploy (push) Failing after 34s
Lint & Format Check / Link Check (push) Successful in 17s
Lint & Format Check / Format Check (styler) (push) Failing after 3s
R Package Tests / test (push) Failing after 1s

This commit is contained in:
2026-02-22 16:18:15 -05:00
parent df978d042f
commit e6c20bd221
8 changed files with 167 additions and 50 deletions

View File

@@ -277,7 +277,7 @@ knitr::include_graphics("resources/images/confusion-matrix.png")
```
:::{.notes}
The confusion matrix is the foundation of all classification metrics. Every metric we care about is derived from these four cells.
The confusion matrix is the foundation of all classification metrics. Every metric is derived from these four cells.
In the fraud context:
- **TN:** Legitimate application correctly approved. No harm done.
@@ -301,7 +301,7 @@ $$\text{Precision} = \frac{TP}{TP + FP}$$
> Of all flagged cases, how many were real fraud?
:::{.notes}
**Recall** (also called **detection rate**) is the primary metric for fraud detection. Missing a fraud case (FN) is costly, so we want Recall as high as possible. A model that flags every application gets a perfect detection rate — but at the cost of Precision.
**Recall** is the primary metric for fraud detection. Missing a fraud case (FN) is costly, so we want Recall as high as possible. A model that flags every application gets perfect Recall — but at the cost of Precision.
**Precision** captures that cost: if we flag everything, every legitimate customer gets rejected. Precision measures how trustworthy our fraud flags actually are.