Repository navigation
Data: Forecast Sheet (data.forecastSheet) (#322) - #325
Merged
Merged
Conversation
New sheet before the active one with the sorted history, a FORECAST.ETS forecast column, FORECAST.ETS.CONFINT lower/upper bounds, an optional FORECAST.ETS.STAT table, an Excel table over the data and a line or column chart. Parameters: timeline/values (default: the selection's first two columns), end or periods, confidence interval, seasonality, missing-point fill, duplicate aggregation, statistics, chart kind. Data ribbon button opens a form dialog; programmatic calls never do. gridcraft-functions exports Timeline to continue a timeline (numeric step or calendar months). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # ROADMAP.md # crates/engine/src/cmd/mod.rs # crates/ui-egui/src/dialogs.rs # docs/gaps.md # docs/parity-checklist.md # docs/ui-parity.md
The default periods (a third of the history, up to ~33k) bypassed MAX_PERIODS, and each forecast row's three ETS formulas refit over the whole history, so 100k history rows x 10k periods froze the app. History is now at most 10,000 rows, periods at most 10,000, and history x periods at most 500,000 (about 3 us per history point per fit: a few seconds of recalc at the cap). The default is clamped to the cap; explicit periods or an end past it are refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
h-a-n-a-s-h-i
pushed a commit
that referenced
this pull request
Oct 11, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
h-a-n-a-s-h-i
pushed a commit
that referenced
this pull request
Oct 11, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
|
Merged — thank you for the contribution! (I merged main into your branch — it keeps main's FORECAST.ETS from #317 and adds If you haven't already, come join us on the ArtCraft Discord: https://discord.gg/artcraft |
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.
Fixes #322
Stacked on #317 (FORECAST.ETS family). This branch contains #317's commit; review only the second commit (
Data: Forecast Sheet …). Once #317 is merged I'll rebase this onto main.What
data.forecastSheet(Data › Forecast › Forecast Sheet) builds a forecast sheet the way Microsoft's "Create a forecast in Excel" page describes it:Forecast(<values>):=FORECAST.ETS(A18,$B$2:$B$17,$A$2:$A$17,<seasonality>,<fill>[,<aggregation>])Lower/Upper Confidence Bound(<values>):=C18∓FORECAST.ETS.CONFINT(…,<confidence>,…)statistics: trueit adds a FORECAST.ETS.STAT table (Alpha, Beta, Gamma, MASE, SMAPE, MAE, RMSE).gridcraft-functionsnow exports a smallTimeline(step detection shared with FORECAST.ETS, including its 30%-missing rule).Params:
timeline/values: default is the first two columns ofrange, the selection or the current region.end: a number or date text. Alternativelyperiods: default is a third of the history, at least 1, at most 10,000.confidenceInterval,confidence(0.95 or 95),seasonality("auto" / 0 / 2–8,760),fillMissing(interpolate/zeros),aggregate(average…sum),statistics,chart(line/column).UI: a Data ribbon button "Forecast Sheet" (Forecast group) opens a form dialog with these options. Programmatic calls never open it. The new ribbon label is translated in all catalogs (ja, zh, ko, ru, pt).
Tests
cmd::forecast::tests::forecast_sheet_builds_table_formulas_and_chart: sheet placement, headers, formula texts, future timeline, exact seasonal continuation (C18 = 47), bounds ordered, table range, chart series, undo.cmd::forecast::tests::forecast_sheet_parameters_and_errors: explicit ranges,endas text, no confidence interval, manual seasonality, zeros, sum, column chart, and the error cases.ets::tests::timelines_continue_past_their_last_point(numeric step, month ends, uneven timelines, too many missing points).tests::every_command_survives_empty_paramspasses with the new command.Commands run:
Not done
Unverified (needs confirmation in Excel)
🤖 Generated with Claude Code