opened
seanlaw
username_0
We need a good data set that contains multiple motifs OR we can construct one ourselves
Add Motif Discovery Tutorial
issue
created
seanlaw
username_0
@username_1 On [slide 40](https://www.cs.ucr.edu/~eamonn/Matrix_Profile_Tutorial_Part1.pdf) they demonstrate three potential motifs in the [penguin dataset](https://www.cs.ucr.edu/~eamonn/MP_first_test_penguin_sample.mat). I think this would work. What do you think?
comment
created
seanlaw
username_0
@username_1 I reached out to Eamonn Keogh and he provided another dataset for motif discovery. I've [deposited it on Zenodo](https://zenodo.org/record/4603813) and you can download it like:

```
%matplotlib inline

import pandas as pd
import matplotlib.pyplot as plt
import stumpy

plt.rcParams["figure.figsize"] = [20, 6]  # width, height
plt.rcParams['xtick.direction'] = 'out'

df = pd.read_csv("https://zenodo.org/record/4603813/files/common_nightingale.csv?download=1")

plt.plot(df["mfcc_2"])
plt.show()

plt.plot(df["mfcc_4"])
plt.show()

plt.plot(df["mfcc_1"])
plt.show()

mp_mfcc2_150 = stumpy.stump(df["mfcc_2"], m=150)
mp_mfcc4_150 = stumpy.stump(df["mfcc_4"], m=150)
mp_mfcc1_350 = stumpy.stump(df["mfcc_1"], m=350)
```

This reproduces the plots/motifs shown in [this PPT provided by Eamonn](https://github.com/TDAmeritrade/stumpy/files/6137371/bird_for_sean.pptx)

Let me know if this is helpful
comment
created
mexxexx
username_1
This is great, thanks! I will work with this data set and reproduce the motifs for one of the time series.
comment
created
seanlaw
username_0
@username_1 Just to confirm, this one is for the "motif discovery tutorial" while #358 needs to be updated to leverage `motifs.py`.
comment
created
seanlaw
username_0
@username_1 I wanted to let you know that I am going to remove the `excl_zone` parameter in the `motifs` function as I am moving that parameter over into `config.py` so that it will be defined globally. This way a user only has to change/set the exclusion zone once and then it will be inherited in ALL functions.
comment
created
seanlaw
username_0
@username_1 I just wanted to [follow up on this](https://github.com/TDAmeritrade/stumpy/issues/358) to ask if you've been able to make any progress. I'm sure that you've been busy so no worries if you need more time.
comment
created
mexxexx
username_1
@username_0  I pushed something on #358 but I didn't manage to write anything for this issue yet unfortunately... Sorry for having promised it, I hope I can do this soon!
comment