Repository navigation
Add 12-month ensemble forecast to the Lines tab - #18
Merged
Merged
Conversation
Equal-weight ensemble of STL + ETS, ETS and ARIMA with São Paulo calendar regressors, fitted on log demand since Jan 2022. Adds a forecast KPI card and forecast columns in the Lines CSV. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Replace the averaged member bounds with empirical 90% intervals. A rolling-origin backtest (tools/forecast-backtest.R) pools the ensemble's standardized log errors by horizon across lines and writes their quantiles to data/forecast-quantiles.csv. The forecast KPI card now shows an interval for the 12-month growth. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Re-snapshot with r-universe listed in the lockfile repositories, so rsconnect records both packages from r-universe instead of falling back to CRAN. Regenerate manifest.json with forecast and the forecast quantiles file. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
viniciusoike
added a commit
that referenced
this pull request
Oct 20, 2026
Resolve the manifest.json conflict by taking main's file list and dropping local-only files that rsconnect picked up during PR #18: .claude/, .omx/, .playwright-mcp/, .posit/ and .Rprofile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Adds a 12-month demand forecast to the Lines tab. The forecast appears when a single line is selected and the new "Mostrar projeção (12 meses)" checkbox is on.
Model
metrosp::calendar_spo.Intervals
tools/forecast-backtest.Rpools the ensemble's log errors by horizon across lines, after standardizing each by its series' residual SD, and writes the quantiles todata/forecast-quantiles.csv. The app reads that file at startup.App changes
fc_mean,fc_lowerandfc_upperrows when the forecast is on.forecastand its dependencies are added torenv.lock.tools/check-manifest.Rnow also coversdata/.Dependencies
renv.lockwas re-snapshotted with r-universe listed as a repository, sometrospandtrendseries(now 1.7.0) are pinned to r-universe.manifest.jsonwas regenerated. It now records both packages from r-universe, plusforecastanddata/forecast-quantiles.csv.🤖 Generated with Claude Code