Add GETS indicator saturation (SIS/IIS/MIS/TIS) with example notebook#8
Open
mortentabor wants to merge 3 commits intomainfrom
Open
Add GETS indicator saturation (SIS/IIS/MIS/TIS) with example notebook#8mortentabor wants to merge 3 commits intomainfrom
mortentabor wants to merge 3 commits intomainfrom
Conversation
7ee87d5 to
6f9da85
Compare
Implements the Autometrics/GETS algorithm for detecting structural breaks via general-to-specific model selection with indicator saturation. New features: - gets_search(): bounded iterative GETS reduction with multi-path search - isat(): indicator saturation with SIS (level shifts), IIS (outliers), MIS (coefficient shifts), TIS (broken trends), and user indicators - Split-half block procedure for large indicator sets - Dual representation: shifts <-> regime levels with SE propagation via the delta method - 3 visualization functions: plot_sis_coefficients, plot_mis_coefficients, plot_regime_levels - .isat() convenience methods on OLS, AR, ADL models - Example notebook 05 demonstrating all features including comparison with Bai-Perron and Markov switching 166 new tests (1069 total), lint clean. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
6f9da85 to
9f59565
Compare
Type-narrowing and type-conversion fixes across 4 files — no logic changes: - saturation.py: assert exog_names after exog null check, remove unused type: ignore - selection.py: remove unused type: ignore on ic_map.get() - ar.py: convert _exog_orig to ndarray before passing to isat() - adl.py: flip isinstance check for proper int narrowing, convert _exog_orig to ndarray Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <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.
Summary
gets_search) with bounded iterative search, multi-path exploration, and encompassing testsisat) with SIS (level shifts), IIS (outliers), MIS (coefficient shifts), TIS (broken trends), and user-supplied indicatorsplot_sis_coefficients,plot_mis_coefficients,plot_regime_levels.isat()convenience methods on OLS, AR, ADL modelsTest plan
ruff checkandruff format --checkclean🤖 Generated with Claude Code