Repository navigation
Compare Multi-Window-Finder window estimates in a notebook - #1236
karthiksenv wants to merge 1 commit into
Conversation
|
Found 1 changed notebook. Review the changes at https://app.gitnotebooks.com/stumpy-dev/stumpy/pull/1236 |
|
@karthiksenv Before submitting a PR, you'll need to share an assessment on the concerns mentioned in #1062 (comment) and #1062 (comment). If the decisions made by the original authors seem hardcoded/brittle for other datasets then we should not continue. The goal isn't to make a notebook just to have it. One must be able to defend and justify the robustness of their approach for any input data. If it is not possible, then we can close the issue instead. |
|
Thanks, Sean. I should have shared the assessment first. I don't think we should continue this PR, and I'd support closing #1062. The paper's quantity can be negative, so it should be called a score; exact zero residuals also produce The normalization concern also holds up. The authors' function gives 80.92 for 100 repetitions of an 83-sample motif, but 50.00 after applying I couldn't find a justification in the paper or reference notebook for the fixed three-valley weights |
Refs #1062.
The notebook compares Algorithm 1 with the authors’ reference code on two synthetic signals with known periods and the first 8,192 samples of UCR series 001. On the UCR excerpt, switching from
sum(log(r))tolog(sum(r))changes the estimate from 37.50 to 210.00 samples with the grid, trimming, and weights held fixed. Keeping the paper score and averaging all harmonic estimates gives 90.08 samples.All six code cells ran successfully. The reference scores matched the authors’ implementation on all three inputs.
@seanlaw @NimaSarajpoor, could you review the comparison, especially the two readings of the divisor in Algorithm 1, line 9?
Pull Request Checklist
Below is a simple checklist but please do not hesitate to ask for assistance!
black(i.e.,python -m pip install blackorconda install -c conda-forge black)flake8(i.e.,python -m pip install flake8orconda install -c conda-forge flake8)pytest-cov(i.e.,python -m pip install pytest-covorconda install -c conda-forge pytest-cov)black --exclude=".*\.ipynb" --extend-exclude=".venv" --diff ./in the root stumpy directoryflake8 --extend-exclude=.venv ./in the root stumpy directory./setup.sh dev && ./test.shin the root stumpy directory and ensured that all tests are passing locallyPlease do not commit any code to avoid/circumvent a failing test and, instead, engage in a discussion (below) to determine the best course of action.
Only request a review after the checklist above is fully completed!