Repository navigation
Examples - #2
Merged
Merged
Examples#2
Conversation
Three notebooks in notebooks/: - figure_simulated.ipynb: Figures 1 & 2 (simulated piecewise trend + 2 seasonalities + outliers) - figure_airtraffic.ipynb: airline traffic comparison + decomposition figures - figure_electricity.ipynb: Figures 3-5 (NY electricity demand, Ks=[7,365], obsSV='SV') Each notebook: - runs fit_BASTION with paper-quality MCMC settings - saves output PDFs to outputs/ - loads R reference .rds files for comparison panels with graceful fallback - uses the pybastion conda kernel
- Rename figure_* -> example_* (simulated, airtraffic, electricity) - Add BASTION methodology introduction to each notebook - Remove TBATS/MSTL/STR comparison code (not in pybastion) - Add paper reference (arXiv:2601.18052) to each notebook - Add Tables 2 & 3 metrics markdown cells as reference - Simulated: 14 cells with true-vs-estimated component comparison - Airtraffic: 11 cells with COVID-19 structural break annotation - Electricity: 11 cells with SV LaTeX formulation and volatility plot
- Add QUICK_MODE toggle (True = fast demo, False = publication quality) - Fix electricity column names: 'Data.Date' and 'Demand..MW.' - Fix volatility key: summary['Volatility'] (was 'Volat_sum') - Simulated: replace markdown metric tables with code cells that compute MSE (Table 2) and pointwise coverage (Table 3), adding 'this run' column alongside paper reference values - Airtraffic/Electricity: add code cell computing in-sample fit statistics (R2, RMSE, component ranges, variance shares) displayed as a table - All notebooks execute successfully in QUICK_MODE
…eeping any element after burn-in
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.
Added and fixed examples notebooks to replicate the original paper.
Some bug fixes added to the python translation