-
Notifications
You must be signed in to change notification settings - Fork 286
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
Add Named Attributes to Matrix Profile #966
Comments
A little bit more experimentation shows that this works:
Then we can do:
and be able to do things like:
or
Notice that the object class is now Being able to do Of course, we should update all of our docstrings/docs/tutorials to use these new properties |
Hello! I just chanced upon the repository and saw this issue and am interested in contributing. However, I see that a pull request has already been opened. Safe to say the issue is more or less resolved? |
@andersooi Thank you for your interest in helping us!
Yes, I think it is mostly completed now as I had some time to tinker with it yesterday (what's left are unit tests). However, we welcome you to check out our other open issues and your help is greatly appreciated! |
Thanks @NimaSarajpoor and congratulations on your first merge in this repo! 🎉 |
Matrix profiles that are generated from functions like
stump
returns a 4 column output (or more for kNN) that represents the matrix profile, the nearest neighbor index, the left index, and the right index. However, this may seem unintuitive. Instead, it may make sense to subclass thenumpy
ndarray and add additional attributes (or properties) that can return the right column so that you can do something like:or
This code example or this one might help. So, we simply compute matrix profile, push it into our subclassed Class, and return it at the end of the function.
The text was updated successfully, but these errors were encountered: