Skip to content

feat(ladder): fuf's FORECAST REPORT in the .out, as the C writes it - #43

Merged
davidesg merged 1 commit into
masterfrom
tabla-fuf
Nov 30, 2026
Merged

davidesg merged 1 commit into
masterfrom
tabla-fuf

Conversation

@davidesg

Copy link
Copy Markdown
Owner

What it ports

After its own forecast block, the C writes in the ladder's .out fuf's FORECAST REPORT series by series (escalera.c, write_fuf_report): the last H+1 observations with their period and annual variation and their exact residual (ERR), then the H forecasts with their standard deviations. It is the table fue, drtran and drvec write. The port did not write it.

With -estwin N -O -1 (tracking, #42) its ERR column carries the one-step errors of the observations that arrived after the window.

Homologation

Against the C built at atsw-gui e964abd, the blocks from FORECAST REPORT: to the evaluation, line by line:

case result
three price indices, VAR(1), -estwin 216 -O -1, H = 6 identical (72 lines)
the same, -O 240 identical (72 lines)
muskrat and mink, annual, VAR(1), H = 4 identical (40 lines)

The C's blocks are stored in tests/data/ladder/fuf_report/. As in the C, the table goes to the .out only, not to .forecast.

Tests

tests/test_fuf_report.py: the three cases against the C's blocks (exact where the platform gives the same digits, 2e-4 on a number otherwise), the ERR column in the tracking case, and that .forecast does not carry the table. Whole suite, local, with the engine: 417 passed, 75 skipped, 2 xfailed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LHFMF3teQWFeXfDJVGj2p5

After its own forecast block the C writes fuf's table series by series
(escalera.c, write_fuf_report): the last H+1 observations with their period
and annual variation and their exact residual (ERR), then the H forecasts
with their standard deviations. The port did not write it.

Line for line the C's (atsw-gui main e964abd) on the three price indices,
from the last datum and from an inner origin, and on an annual pair. With
-estwin N -O -1 the ERR column carries the one-step errors of the
observations that arrived after the window.

Suite: 417 passed, 75 skipped, 2 xfailed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LHFMF3teQWFeXfDJVGj2p5
@davidesg
davidesg merged commit 7f5a980 into master Nov 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant