Skip to content

Compare Multi-Window-Finder window estimates in a notebook - #1235

Closed
karthiksenv wants to merge 1 commit into
stumpy-dev:mainfrom
karthiksenv:codex/multi-window-finder-1062
Closed

karthiksenv wants to merge 1 commit into
stumpy-dev:mainfrom
karthiksenv:codex/multi-window-finder-1062

Conversation

@karthiksenv

@karthiksenv karthiksenv commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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)) to log(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!

  • Read our Contributing Guide
  • Referenced a Github issue (or create one if one doesn't already exist)
  • Read and reviewed all of the comments in the Github issue that you've referenced (along with cross-referenced issues/pull requests) to ensure that the issue still requires a pull request
  • Checked that the issue has not already been assigned to anybody else or is already being addressed in another pull request
  • Left a meaningful comment on the original Github issue to discuss the detailed approach for your contribution and received confirmation from the maintainers before proceeding with this pull request
  • Forked, cloned, and checked out the newest version of the code
  • Created a new branch
  • Made necessary code changes
  • Installed black (i.e., python -m pip install black or conda install -c conda-forge black)
  • Installed flake8 (i.e., python -m pip install flake8 or conda install -c conda-forge flake8)
  • Installed pytest-cov (i.e., python -m pip install pytest-cov or conda install -c conda-forge pytest-cov)
  • Ran black --exclude=".*\.ipynb" --extend-exclude=".venv" --diff ./ in the root stumpy directory
  • Ran flake8 --extend-exclude=.venv ./ in the root stumpy directory
  • Ran ./setup.sh dev && ./test.sh in the root stumpy directory and ensured that all tests are passing locally
  • Check this box if AI code assistance was used to generate
    • less than 25% of the code in this pull request
    • 25-50% of the code in this pull request
    • more than 50% of the code in this pull request

Please 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!

@karthiksenv
karthiksenv requested a review from seanlaw as a code owner November 18, 2026 19:44
@gitnotebooks

gitnotebooks Bot commented Nov 18, 2026

Copy link
Copy Markdown

Found 1 changed notebook. Review the changes at https://app.gitnotebooks.com/stumpy-dev/stumpy/pull/1235

@github-actions

Copy link
Copy Markdown

❌ This pull request has been automatically closed because the mandatory PR template was removed or not filled out. Please reopen or recreate this PR with the required information.

@github-actions github-actions Bot closed this Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant