vault backup: 2026-05-22 12:57:45

This commit is contained in:
ben committed 2026-05-22 12:57:45 -07:00
1 parent d50f8c0665
commit d5d85c08c7
1 file changed
+12 -1
@@ -32,4 +32,15 @@ Cross entropy loss is used for multi-class problems and due to the log that is u
### Accuracy
Accuracy is defined as the percentage of predictions that the model gets correct.
$$\frac{\text{num correct predictions}}{\text{num incorrect predictions}}$$
This metric is simple but can often hide information about how a model performs on a dataset. One particular limitation is when the dataset is imbalanced since a model can have a high accuracy while predicting the minority class incorrectly most of the time. This is common in datasets relating to disease, especially when outputs such as whether someone has cancer
This metric is simple but can often hide information about how a model performs on a dataset. One particular limitation is when the dataset is imbalanced since a model can have a high accuracy while predicting the minority class incorrectly most of the time. This is common in datasets relating to disease, especially when outputs such as whether someone has cancer need to be accurately predicted. If a model is biased towards the majority class there will likely be many false negatives that accuracy is not able to detect.
### Precision
$$\frac{TP}{TP + FP}$$
### Recall
### F-Measure
The F-measure is used to balance both the precision and recall metrics to better evaluate how a model performs. This helps to get a better metric on imbalanced datasets since it can help a model train for precision and recall.
$$F_{\beta} = (1 + \beta^2)\frac{{\text{precision} * \text{recall}}}{\beta^2 * \text{precision} + \text{recall}}$$
$\beta$ is used as a way to tune whether precision or recall is emphasized in the F-measure. When $\beta > 1$ recall is emphasized and when $\beta < 1$ precision is emphasized.
When $\beta = 1$ the F-measure is also called the F1-measure which is the most commonly used variant. This is where precision and recall are both weighted equally in the metric.
### Kappa