Commit 0eefe7f
Extract quantiles from Julia forecast intervals for R plotting
The forecast_to_r_dict() Julia helper was setting intervals and quantiles to nothing,
preventing scoringutils::plot_predictions() from working with prediction intervals.
Changes:
- Extract interval bounds from fc.intervals Dict and convert to quantile format
- Calculate quantile levels from confidence levels (e.g., 95% → 0.025, 0.975)
- Include median (0.5 quantile) if present
- Return quantiles as matrix (horizons × quantile_levels) and quantile_levels vector
This enables probabilistic forecast visualization with scoringutils::plot_predictions().
Note: Users need to re-run setup_ForecastBaselines() after updating to load new helpers.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 64508f7 commit 0eefe7f
1 file changed
+47
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
51 | 95 | | |
52 | 96 | | |
53 | 97 | | |
| |||
0 commit comments