matrix-profile-foundation / matrixprofile

A Python 3 library making time series data mining tasks, utilizing matrix profile algorithms, accessible to everyone.
https://matrixprofile.org
Apache License 2.0
362 stars 62 forks source link

AttributeError: module 'matrixprofile' has no attribute 'compute' #94

Closed rcyost closed 2 years ago

rcyost commented 2 years ago

Describe the bug I am trying to follow along with this tutorial: https://matrixprofile.docs.matrixprofile.org/examples/ECG_Annotation_Vectors.html

When I try to run this code:

profile = mp.compute(ts, windows=window_size)
profile = mp.discover.motifs(profile, k=1)
figures = mp.visualize(profile)

I immediately get this error:

'''

AttributeError Traceback (most recent call last) c:\Users\yosty\Desktop\Desktop_Folder\14 - git\matrix_profile\fed_mp.py in 20 window_size = 150 21 ----> 22 profile = mp.compute(ts, windows=window_size) 23 profile = mp.discover.motifs(profile, k=1) 24 figures = mp.visualize(profile)

AttributeError: module 'matrixprofile' has no attribute 'compute' '''

To Reproduce Steps to reproduce the behavior:

  1. Fresh python venv
  2. pip install matrixprofile
  3. Copy code over from tutorial
  4. See error

Desktop (please complete the following information):

Additional context Just trying to follow along with the tutorial

rcyost commented 2 years ago

It works now, not sure what was going on sorry