Merge branch 'dev'

This commit is contained in:
Miha Kralj
2026-03-13 13:47:10 -07:00
404 changed files with 2754 additions and 1763 deletions
+2 -4
View File
@@ -13,9 +13,7 @@
| **PineScript** | [logcosh.pine](logcosh.pine) |
- Log-Cosh Loss combines the best properties of L1 (absolute) and L2 (squared) error metrics through the logarithm of the hyperbolic cosine function.
- Parameterized by `period`.
- Output range: $\geq 0$.
- Requires 1 bar of warmup before first valid output (IsHot = true).
- **Similar:** [Huber](../huber/Huber.md), [MSE](../mse/Mse.md) | **Trading note:** Log-cosh loss; smooth approximation to MAE. Twice differentiable; preferred for gradient-based optimization.
- Validated against TA-Lib, Skender, and Tulip reference implementations where available.
Log-Cosh Loss combines the best properties of L1 (absolute) and L2 (squared) error metrics through the logarithm of the hyperbolic cosine function. It provides smooth gradients everywhere while remaining robust to outliers.
@@ -184,4 +182,4 @@ For large errors, Log-Cosh grows approximately linearly (like L1), avoiding the
* [MAE](../mae/Mae.md) - Mean Absolute Error (pure L1)
* [MSE](../mse/Mse.md) - Mean Squared Error (pure L2)
* [Huber](../huber/Huber.md) - Huber Loss (piecewise L1/L2)
* [PseudoHuber](../pseudohuber/PseudoHuber.md) - Smooth Huber approximation
* [PseudoHuber](../pseudohuber/PseudoHuber.md) - Smooth Huber approximation