vault backup: 2026-05-21 12:19:18

This commit is contained in:
ben committed 2026-05-21 12:19:18 -07:00
1 parent 264b9771bb
commit 72ff3cd626
8 files changed
+245 -57

No files matched your search

@@ -77,4 +77,8 @@ $$MSE = \frac{1}{n}\sum(\hat{Y}_{i} - Y_{i})^2$$
Since MSE produces a convex curve in the error metric it also allows the use of algorithms like gradient descent optimization to tune the weights of a model.
### Log Loss
$$L_{\log}(y_{i}, \hat{p}_{i}) = -(y_{i}\ln(\hat{p}_{i}) + (1-y_{i})\ln(1-\hat{p}_{i}))$$
Log loss is used to optimize the weights of a logistic regression. MSE cannot be used since a logistic regression is not linear and the error with respect to weights does not have a clear minimum. This makes it challengin
Log loss is used to optimize the weights of a logistic regression. MSE cannot be used since a logistic regression is not linear and the error with respect to weights is not a convex curve. This makes it challenging to find the weights since algorithms like gradient descent cannot be used.
Logistic regressions also only predict between 0 - 1 (probabilities) so any error value will be between 0 - 1 using MSE which is not ideal.
The log loss function is used to penalize wrong predictions more harshly when they are more confident.