Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with string data types #74

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AndrewWilkins84
Copy link

The proposed changes allow mp.compute() to work with string data types. mp.analyze() still needs work however since function calls to mass2() are used when discovering motifs and/or discords, but a new function could easily bypass this behavior and produce results comparable to https://www.cs.ucr.edu/~eamonn/PAN_SKIMP%20%28Matrix%20Profile%20XX%29.pdf (page 3).

Additionally, documentation suggests minimum window size should be 4. I have changed several of the functions I came across to reduce the minimum window size from 8 down to 4, consistent with documentation.

@lgtm-com
Copy link

lgtm-com bot commented Jan 26, 2021

This pull request introduces 1 alert when merging 60dde27 into 5ef2382 - view on LGTM.com

new alerts:

  • 1 for Unused import

@vanbenschoten
Copy link
Contributor

@AndrewWilkins84 thanks for the PR! I'll review shortly. In the meantime, can you take a look at why the tests are failing? The Travis CI logs indicate that it may be a relative importing issue.

@vanbenschoten
Copy link
Contributor

Also, would you have any interest in creating a Jupyter notebook that highlights how to use Matrix Profile with string data types? I think the community would be very interested, and we could easily convert it into a blog post for the MPF website.

@AndrewWilkins84
Copy link
Author

AndrewWilkins84 commented Jan 27, 2021 via email

@vanbenschoten
Copy link
Contributor

vanbenschoten commented Jan 27, 2021 via email

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.

2 participants