docs: add quick how-to example for 1D motif discovery (#1) - #4
Gargeesharmaa wants to merge 4 commits into
Conversation
|
Found 1 changed notebook. Review the changes at https://app.gitnotebooks.com/stumpy-dev/awesome-stumpy/pull/4 |
|
@Gargeesharmaa Can you please reproduce one of the examples in this PDF file? |
|
Hi @seanlaw! Absolutely. I will adapt this notebook to directly reproduce Question 1 from the 100 Time Series Data Mining Questions PDF ("How do I find the most similar pair of time series sub-sequences / motifs?"). I'll update the notebook structure and push the commit shortly! |
@Gargeesharmaa I would prefer your notebook were to reproduce slide 3. When you look at the slide itself, they demonstrate everything using 4 lines of code. I think our example should feel similar. We may need more code to plot things but the complexity of the code should be similar. Finally, we should be using examples where the data is readily available |
|
Got it, @seanlaw! I'll update the notebook to reproduce Slide 3 using a readily available dataset, keeping the core STUMPY logic to ~4 lines of code along with the corresponding plot. I'll push the updated notebook shortly! |
|
Hi @seanlaw! I've updated the notebook to reproduce Slide 3:
Ready for your review! |
|
@Gargeesharmaa Please find and use the same/identical dataset as slide 3. Please do not deviate from slide 3. Additionally, you mention red dashes but there is no plot displayed. Finally address all errors before requesting a review. |
|
Hi @seanlaw! Thank you for the feedback. I have updated the notebook: Identical Dataset: Switched directly to the Slide 3 dataset (robot_dog.txt / carpet_query.txt). Code Simplicity: Kept the core query match logic concise using stumpy.mass. Plot Output: Executed the notebook locally so the 2-panel plot (with red dashed lines) is saved and renders properly in the PR preview. Ready for your re-review! |
Where are the plots? There are no plots displayed
There are still persistent errors that need to be resolved before requesting review |
Summary
Resolves #1 (Follow-up to
stumpy#663).This PR adds a concise, solution-oriented How-To Example notebook for finding repeating patterns (motifs) in a 1D time series using
stumpy.stump.Following the Diátaxis framework for How-To guides, this notebook is designed for quick reference by experienced users and data scientists who need minimal code and instant results:
stumpy.stumpexecution, and top motif extraction in a few lines.mp[:, 0](distances) andmp[:, 1](indices) in a brief concluding section.Comparison: Old Tutorial Style vs. New How-To Guide
stumpydocs)awesome-stumpy)matplotlibvisualization code, multi-step pipelinestumpy.stumpAPImatplotlib,pandas)numpy,stumpy)Checklist