Repository navigation
[REF] Reuse DAMP search kernels in MADRID - #4030
Conversation
Keep seeded multi-length searches on the same numerical path as single-length detection, without constructing additional estimators. Co-authored-by: Tony Bagnall <a.j.bagnall@soton.ac.uk> Co-authored-by: Matthew Middlehurst <pfm15hbu@gmail.com>
Thank you for contributing to
|
Keep zram devices intact by creating /swapfile explicitly. Import the shared workflow repair from aeon-toolkit#4029. Original-commit: da99cdc
TonyBagnall
left a comment
There was a problem hiding this comment.
nice, thanks for doing thisd
Reference Issues/PRs
Fixes #4028. Follows #3844.
What does this implement/fix? Explain your changes.
MADRID and DAMP maintained separate backward-search and forward-pruning implementations. Move the distance helpers into DAMP and use one single-discord search loop in both estimators. MADRID retains its seeded profiles and thresholds without constructing DAMP estimators or repeating input validation. DAMP's multiple-discord search uses the same backward-search and forward-pruning helpers.
Public parameters, defaults and return formats are unchanged. Add seeded-search and multi-length comparisons, plus a zero-score tie regression.
Does your contribution introduce a new dependency? If yes, which one?
No.
Any other comments?
Validation on Windows with Python 3.12: the full anomaly tests pass with 164 passed and 31 skipped, both estimator doctests pass, all 60 estimator checks pass, file hooks pass, and wheel/source builds pass. The existing 17 exact-profile comparison failures on the baseline pass with the shared single-discord loop, without relaxing their assertions. Scoped mypy checking reports the same six errors as the unmodified baseline.
CI setup also includes the unchanged swapfile repair from #4029 in the three affected workflows. It explicitly creates /swapfile and leaves zram swap active, addressing the setup failure tracked in #4027. Local mocked shell checks cover the old zram failure, regular-file/zram/no-swap setups and fatal setup errors.
Latest CI on 77546b4: 17 checks passed, including the documentation build, 2 skipped and one hosted-runner disconnect. The Ubuntu 3.12 job lost communication with GitHub's server and returned no final test log. The previous Ubuntu 3.13 job ended with the same runner annotation, then passed on the unchanged-code retry. All Ubuntu swap steps passed.
Could a maintainer rerun the failed Ubuntu 3.12 job with diagnostic logging enabled? The contributor account does not have upstream write permission to rerun that job directly. No further empty retry commits are planned without diagnosing the repeated runner loss.
The baseline comparison covers 2,160 output arrays. On nonconstant inputs, locations and pruning rates are unchanged and the largest absolute numerical difference is approximately 7.3e-12. Constant-input results can differ substantially after recompilation of the existing fast-math distance helpers. Both estimators already warn that constant regions give unstable results, and this refactor does not change that handling. Bitwise equivalence is not claimed.
PR checklist
For all contributions
This pull request includes code written with the assistance of AI.
The code has been reviewed by a human.