feat: add EDivisive nonparametric change point detection#375
Open
hass-nation wants to merge 2 commits into
Open
feat: add EDivisive nonparametric change point detection#375hass-nation wants to merge 2 commits into
hass-nation wants to merge 2 commits into
Conversation
Implements the E-Divisive algorithm (Matteson & James, 2014, JASA 109(505):334-345) as a new `EDivisive` estimator in `ruptures.detection`. The algorithm recursively splits the segment with the highest energy divergence between its two halves, using a permutation test to decide when to stop. It makes no distributional assumptions and supports multivariate signals and a tunable distance exponent `alpha`. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
for more information, see https://pre-commit.ci
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
Adds
EDivisive, a new detection algorithm based on the energy-statistic approach of Matteson and James (2014).alpha(distance exponent, default 1 = Euclidean; any value in (0, 2] is valid),min_size,n_perms,sig_level.n_bkps(fixed count, no permutation test) and permutation-based stopping.scipy.spatial.distance.cdist, already a ruptures dependency.Reference
Matteson, D. S. and James, N. A. (2014). A Nonparametric Approach for Multiple Change Point Analysis of Multivariate Data. Journal of the American Statistical Association, 109(505), 334-345.
Test plan
tests/test_edivisive.pycovering: interface, error handling, detection accuracy (1-D and 5-D), energy statistic properties, alpha variants, permutation test behaviour, min_size constraint.