Repository navigation
feat(ladder): -O g, the origin of the forecast report, as in the C - #42
Merged
Merged
Conversation
The C of record gained -O g in atsw-gui #231: the origin of the forecast report is independent of the estimation window, as in drtran. The port follows: -O g / -O -1 on the command line and Ladder.forecast(L, origin=...). The parameters and sigma2 stay the estimation's; -estwin N -O -1 is the tracking mode. The C's checks and messages. Without -O nothing changes. The forecast block of the report used the series' current length to index the path; it now uses the history the forecast was made with. On a VAR(1) of the three price indices the port writes the C's .forecast number for number, from the last datum and from an inner origin (tests/test_origin.py, 6 tests, references in tests/data/ladder/origin). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LHFMF3teQWFeXfDJVGj2p5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it adds
-O g, the origin of the forecast report, which the C of record gained in atsw-gui #231 (and drtran already had). The port follows the C:-O g: the report leaves from observationgof the first series;-O -1: from the current end of the data; without-O: from the end of the estimation sample, as before.Ladder.forecast(L, origin=...)is the same in Python.-estwin N -O -1is the tracking mode: new observations, the same parameters, the forecast from the last datum.-O needs a horizon,-O g is beyond the N observations of …).One fix that came with it: the forecast block of the report indexed the path with the series' current length; it now uses the history the forecast was made with (they only differ with
-O).Homologation
VAR(1) of the three price indices,
-estwin 216 -forecast 6, against the C built from atsw-gui main (e964abd):.forecast(18 rows)-O -1(11/2023)-O 240(12/2021)The C's two files are in
tests/data/ladder/origin/.Verification
tests/test_origin.py: 6 tests (the C's files, the last origin ofrecursive(), the estimation sample untouched, the estimation's scale, the refusals). They also pass in pure Python, without the compiled engine.Left apart
The port's
.outdoes not write fuf's FORECAST REPORT (the table with the ERR column) that the C's.outcarries. It predates this change; to be registered.🤖 Generated with Claude Code
https://claude.ai/code/session_01LHFMF3teQWFeXfDJVGj2p5