mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-23 21:18:04 +00:00
validation and profiles
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# RMSLE: Root Mean Squared Logarithmic Error
|
||||
# RMSLE: Root Mean Squared Logarithmic Error
|
||||
|
||||
> "RMSLE: because sometimes your errors need to be measured in decades, not dollars."
|
||||
|
||||
@@ -40,6 +40,28 @@ $$\text{RMSLE} \approx |\log(1 + \epsilon)| \approx |\epsilon|$$
|
||||
|
||||
## Performance Profile
|
||||
|
||||
### Operation Count (Streaming Mode)
|
||||
|
||||
O(1) per bar. Single-pass scalar transformation of (actual, forecast) pair; no lookback window required.
|
||||
|
||||
| Operation | Count | Cost (cycles) | Subtotal |
|
||||
| :--- | :---: | :---: | :---: |
|
||||
| Error computation (subtract, abs/square/log) | 1-3 | ~3-8 cy | ~5-15 cy |
|
||||
| Running accumulator update (EMA or sum) | 1 | ~4 cy | ~4 cy |
|
||||
| **Total** | **2-4** | — | **~9-19 cycles** |
|
||||
|
||||
Streaming update requires only the current actual/forecast pair and running state. ~10-15 cycles/bar typical.
|
||||
|
||||
### Batch Mode (SIMD Analysis)
|
||||
|
||||
| Operation | Vectorizable? | Notes |
|
||||
| :--- | :---: | :--- |
|
||||
| Element-wise error computation | Yes | Independent per bar; fully vectorizable with `Vector<double>` |
|
||||
| Reduction (sum/mean) | Yes | Parallel reduction; AVX2 gives 4x speedup |
|
||||
| Log/exp components | Partial | Transcendental ops; polynomial approx for SIMD |
|
||||
|
||||
Batch SIMD: 4x-8x speedup for large windows. ~3-5 cy/bar amortized in vectorized batch mode.
|
||||
|
||||
| Metric | Score | Notes |
|
||||
| :--- | :--- | :--- |
|
||||
| **Throughput** | 28 ns/bar | O(1) with sqrt overhead |
|
||||
|
||||
Reference in New Issue
Block a user