-
Notifications
You must be signed in to change notification settings - Fork 341
[WIP] Add Top-K Nearest Neighbors for Normalized Matrix Profile #592 #595
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
Merged
Merged
Changes from all commits
Commits
Show all changes
453 commits
Select commit
Hold shift + click to select a range
4ec3c5a
Added test function to test TopK scrump in AB_join
NimaSarajpoor 40132d4
Refactored
NimaSarajpoor b0132ca
Added definition of parameter k to docstring
NimaSarajpoor fdfdf07
Improved docstring
NimaSarajpoor 7d9c76a
Removed trailing colon
NimaSarajpoor 2674988
Cleaned code
NimaSarajpoor a1855a0
Avoided allocating new memory in inner for-loop
NimaSarajpoor 5b561ff
Fixed typos
NimaSarajpoor 3d02bf4
Improved comments
NimaSarajpoor 551d223
Avoided allocating new memory in each iteration
NimaSarajpoor 0de3a28
Same ndim in output regardless of value of k
NimaSarajpoor d1e95f6
Revised docstrings
NimaSarajpoor bfc4c8e
Enhanced function to perform shift left as well
NimaSarajpoor bbcb71f
Enhanced test function to test newly added functionality
NimaSarajpoor ec889b4
Fixed format
NimaSarajpoor f7ef962
Fixed format
NimaSarajpoor 9288916
Removed/Renamed intermediate variables
NimaSarajpoor 163a775
Renamed variable for the sake of consistency
NimaSarajpoor cf3748d
Avoided shape mismatch by reshaping ndarray
NimaSarajpoor 467f4a3
Refactored
NimaSarajpoor d0f5956
Fixed comment
NimaSarajpoor 80b8594
Refacored and Minor restructuring of lines
NimaSarajpoor 33a96c6
Modified stimp after changing output shape in scrump
NimaSarajpoor 41007f6
Add pragma no cover
NimaSarajpoor 68efe20
Revised Docstrings
NimaSarajpoor 7cbeae9
Fixed docstring
NimaSarajpoor 2a38dbb
Revised docstring
NimaSarajpoor 616332e
Removed unnecessary dangling else
NimaSarajpoor 97a17ce
Removed unnecessary comment
NimaSarajpoor e55ee07
Revised structure of test function
NimaSarajpoor b177136
Replaced ravel with flatten to get copy of array
NimaSarajpoor fc7c210
Changed the type of input parameter and revised docstring
NimaSarajpoor 7a4b46e
Update the value of parameter to match its type
NimaSarajpoor 2622d13
Update the value of parameter to match its type
NimaSarajpoor fc3be79
Correct format
NimaSarajpoor 6411b7a
Changed output structure of naive.scrump
NimaSarajpoor 71d68c8
Correct format
NimaSarajpoor 3e42343
Add test function for scrump_plus_plus for TopK
NimaSarajpoor e512a63
Add naive version to merge peason profiles
NimaSarajpoor 382bda2
Add test function for merging pearson profiles
NimaSarajpoor b0a56f7
Corret format
NimaSarajpoor b5a4e15
Add performant function to merge pearson profiles
NimaSarajpoor d4d28fe
Optimize function
NimaSarajpoor 99f2a57
Avoid creating new memory
NimaSarajpoor 855c429
Improve docstring
NimaSarajpoor 9e02bac
Refactored
NimaSarajpoor be44ab0
Avoid creating new memory in for-loop
NimaSarajpoor e0ad42a
Update test function
NimaSarajpoor 33c2151
Revise function to make it parallelizable
NimaSarajpoor 4a995d1
Full test and coverage in 1hr
NimaSarajpoor 2c55c88
Revise docstrings
NimaSarajpoor 07b83ab
Revise docstrings
NimaSarajpoor 5be2cf6
Optimize function
NimaSarajpoor 4896fe8
Optimize function
NimaSarajpoor d9a0a20
Rename variable to improve readability
NimaSarajpoor eabe0fb
Revise comments
NimaSarajpoor e298fd3
Improve comments and docstrings
NimaSarajpoor 9afba6c
Correct naive implementation
NimaSarajpoor 05945a0
Enhance naive function to support top matrix profile
NimaSarajpoor a72aeb7
Enhace performant function to support topk matrix profile
NimaSarajpoor c7ffdac
Update existing test functions
NimaSarajpoor 34941c2
Correct format
NimaSarajpoor 8cbe308
Fix shape of array
NimaSarajpoor 2b5038d
Fix shape of array
NimaSarajpoor 9cc800a
Add kind keyword for sorting
NimaSarajpoor 5b0b3fe
Fix bugs
NimaSarajpoor 0335294
Remove ineffective inner prange
NimaSarajpoor 6c05e30
Temporarily added parameter k to avoid decorator failure
NimaSarajpoor 23a54ba
Improve comments
NimaSarajpoor 5af6ec0
Improve comments
NimaSarajpoor 26cec6e
Improve docstring
NimaSarajpoor b177c84
Add KNN test function for stumpi
NimaSarajpoor c5d2345
Fix shape of output for KNN test
NimaSarajpoor cdc11c8
Full test and coverage 1 hr
NimaSarajpoor fa7fa4a
Avoid using searchsort when k is 1
NimaSarajpoor 6a6757c
merge main and resolve conflict
NimaSarajpoor d41a2e9
Revise code according to top k matrix profile structure
NimaSarajpoor 38f4c1d
Remove if condition
NimaSarajpoor e4fd875
Improve dosctrings
NimaSarajpoor 0afb3ec
Avoid allocating new memory
NimaSarajpoor 13da458
Avoid allocating new memory
NimaSarajpoor 93b5708
Improve comments
NimaSarajpoor 114c0cc
Remove numpy.where to avoid copying unchanged values
NimaSarajpoor 719aefd
Remove unnecessary trailing colon
NimaSarajpoor 528bf12
Replace negative np.inf with np.NINF
NimaSarajpoor ce58a59
delete a wrong file
NimaSarajpoor ba4986b
Avoid advance indexing by using chain slicing so it can be run by njit
NimaSarajpoor 2f0f53c
Improve docstring
NimaSarajpoor 6b49de8
Added gpu_searchsorted checks when GPUs unavailable
seanlaw 0d1e482
Added error checks and pytest ignore warning
seanlaw 9222ab6
Merge branch 'TopK_MatrixProfile' of https://github.com/NimaSarajpoor…
NimaSarajpoor f72ca7a
Improve docstrings
NimaSarajpoor af40906
minor changes in if-block and dosctring
NimaSarajpoor 42ec617
Improve docstrings
NimaSarajpoor 0d8f5de
Improve comments
NimaSarajpoor fe9c4db
minor changes
NimaSarajpoor 9aba6d2
Correct format
NimaSarajpoor 2565c91
Improve docstrings
NimaSarajpoor 283c31e
Merge branch 'main' into TopK_MatrixProfile
NimaSarajpoor 9012235
resolve conflicts and merge main
NimaSarajpoor 0bd70aa
Merge branch 'main' into TopK_MatrixProfile
NimaSarajpoor a89e214
optimize functions
NimaSarajpoor 9b845b1
Remove redundant import
NimaSarajpoor 85f1226
minor change
NimaSarajpoor fb6ed07
Revise docstrings
NimaSarajpoor a2129c7
Merge branch 'main' into TopK_MatrixProfile
seanlaw 9f7b6d8
Fixed black formatting after conflict resolution
seanlaw 8da2920
Resolve conflicts and merge changes
NimaSarajpoor 54d1d1f
Correct docstring
NimaSarajpoor 6735167
Revise docstrings
NimaSarajpoor 0112989
minor change
NimaSarajpoor ff322a0
Revise comments
NimaSarajpoor 598fcf4
Avoid redundant allocation of memory
NimaSarajpoor 54643e2
Revise docstrings and comments
NimaSarajpoor 9433499
rename variables
NimaSarajpoor 902d7ab
minor correction
NimaSarajpoor 3c16d33
Fix indexing
NimaSarajpoor 9bb8b16
Add new test function
NimaSarajpoor 33c6112
Modify test function
NimaSarajpoor 7993cc2
merge main and resolve conflicts
NimaSarajpoor 30f4bcf
Avoid dumplicate in naive prescrump
NimaSarajpoor 77e56f7
Add parameter assume_unique to handle duplicates
NimaSarajpoor 7a93a7c
Add test function to test for duplicates in topk_merge
NimaSarajpoor fefcaa9
Add parameter assume_unique to performant merge_topk
NimaSarajpoor 5e9c5fc
fix test function
NimaSarajpoor 9685e44
Fix bug
NimaSarajpoor 9dd452b
Revise prescrump to avoid duplicates
NimaSarajpoor 3d68ae7
Avoid duplocates in scrump
NimaSarajpoor 4c17119
Revise test function to consider new parameter
NimaSarajpoor 2c662a9
Fix bug
NimaSarajpoor 3a0f4da
Revise naive scrump to avoid duplicates
NimaSarajpoor d8728c9
Add comment
NimaSarajpoor 561b428
minor optimization
NimaSarajpoor 44b85a8
Correct style
NimaSarajpoor dbdc7c9
Correct style
NimaSarajpoor 19129ab
increase threshold
NimaSarajpoor 5d96bbd
Specifiy kind in sort
NimaSarajpoor d3a9b31
minor change
NimaSarajpoor 970efc7
specify kind in sort
NimaSarajpoor cd7fe1a
minor changes
NimaSarajpoor 6ca36d0
De-otpimize if condition
NimaSarajpoor b1baa76
merge so far solved conflicts
NimaSarajpoor 5d930b2
Update scrump
NimaSarajpoor 4b58765
minor changes
NimaSarajpoor aaa8ff7
add new test function
NimaSarajpoor 6c8eddc
optimize if condition
NimaSarajpoor 5bb6879
Give priority to PA in case of ties between IA and IB
NimaSarajpoor fc10e8a
Remove trailing colon
NimaSarajpoor ef1309b
update test function
NimaSarajpoor c2fe4d2
revise function to avoid adding new parameter
NimaSarajpoor 99806a9
Update module scrump and improvee its readability
NimaSarajpoor b57c691
Fix syntax
NimaSarajpoor e499057
update test functions
NimaSarajpoor b811319
minor fix
NimaSarajpoor 11ee8de
correct format
NimaSarajpoor 7925119
Improve docstring
NimaSarajpoor c3b82dd
Avoid overlap while merging matrix profiles
NimaSarajpoor f073d6c
Add function to find overlapping values
NimaSarajpoor a514943
replace numpy function with our implementation
NimaSarajpoor edb62a2
Avoid unnecessary call of a function
NimaSarajpoor ec020e0
Revise docsting and comment
NimaSarajpoor 7ab480e
Improve test function
NimaSarajpoor b2bc500
Remove comment
NimaSarajpoor c156530
Add test function to ensure duplicates are avoided
NimaSarajpoor 5f1acae
Improve comments
NimaSarajpoor 5f9c537
Enhance naive version to avoid duplicates while merging
NimaSarajpoor f37bc29
Add test function and revise naive version
NimaSarajpoor dc97a12
Improve code readability and comment
NimaSarajpoor fa340ba
Update top-k profile by getting insertion index
NimaSarajpoor d9a997d
Merge nested if statements into one
NimaSarajpoor a52564f
Remove blank lines
NimaSarajpoor 526618c
Fix typo
NimaSarajpoor 3607711
Improve comment
NimaSarajpoor 1b19a45
Improve comments
NimaSarajpoor bba35e1
Improve docstring
NimaSarajpoor 6d4d127
Remove unnecessary comments
NimaSarajpoor e531385
passing copy of variable as input
NimaSarajpoor 8e28aeb
minor change in test functions
NimaSarajpoor be1d1e7
Correct style
NimaSarajpoor 956fc31
Revise comment
NimaSarajpoor 9b3daef
Remove comment
NimaSarajpoor 6abd601
Revise comment
NimaSarajpoor 680ed2a
Merge branch 'main' into TopK_MatrixProfile
NimaSarajpoor ff2c06c
Merge branch 'main' into TopK_MatrixProfile
seanlaw 355c8e5
Fix format
NimaSarajpoor 04685c7
Remove unnecessary newline
NimaSarajpoor ba7b6ca
Return 1D array for matrix profile when `k` is 1
NimaSarajpoor 36a7fcb
Remove unnecessary flattening operatiton on array
NimaSarajpoor 4f1b2dc
Fix comments
NimaSarajpoor aa52529
Make matrix profile and mp index 1D when k=1
NimaSarajpoor ab22972
Revise tests functions
NimaSarajpoor 249d928
Improve Docstrings
NimaSarajpoor 5e515c4
Make prescrump output 1D when k is one
NimaSarajpoor 752a22c
minor change
NimaSarajpoor e1f49af
update test functions
NimaSarajpoor 6e541ea
Modify merge_topk to support 1D input
NimaSarajpoor 354d96f
minor change and fix conflict
NimaSarajpoor 0bff1ae
Fix merge_topk
NimaSarajpoor 39e5ea3
Fix shape of variables in test functions
NimaSarajpoor e9fd14c
Remove unnecessary flatten operation
NimaSarajpoor d385829
Update test function for case k=1
NimaSarajpoor 90ab9e3
revise comment
NimaSarajpoor 0b163eb
Avoid using return in the middle of code
NimaSarajpoor bf6df9b
Add new private function to get 2D ouput when k=1
NimaSarajpoor e6a05d6
Remove check for 1D in merge_topk
NimaSarajpoor fe905d2
Revise test functions
NimaSarajpoor 8e8d48b
Revise docstring to provide description for 1D case
NimaSarajpoor 3bebc47
Add overlap check in merge_topk with 1D input
NimaSarajpoor 4fcf797
Add overlap check in 1D and revise docstring
NimaSarajpoor 41097a7
Add separate test function for _merge_topk 1D case
NimaSarajpoor 948d674
Add preprocessing function for prescrump
NimaSarajpoor 391c97d
Update test function
NimaSarajpoor 4d7cccf
fix missing argument
NimaSarajpoor e8814cf
Fix Docstring
NimaSarajpoor eb56346
Resolved Merge conflict
NimaSarajpoor 3946915
Put back the missing decorator
NimaSarajpoor eff9ca4
Add preprocessing function in prescraamp
NimaSarajpoor 666b93e
Revise naive function
NimaSarajpoor eee6d75
Fix value of imprecision in test functions
NimaSarajpoor 27d229b
create overlaps randomly for test merge_topk in 1D case
NimaSarajpoor 6449d4b
Merge main into this branch
NimaSarajpoor 3b9d1de
Merge main and Resolve conflict
NimaSarajpoor 03f19d8
Revise docstrings
NimaSarajpoor 5907f8b
Merge branch 'main' into TopK_MatrixProfile
NimaSarajpoor 34a5f2d
Merge branch 'TopK_MatrixProfile' of https://github.com/NimaSarajpoor…
NimaSarajpoor d35de3e
Fix docstrings
NimaSarajpoor dbf2524
merge main
NimaSarajpoor 0c80852
minor changes
NimaSarajpoor 2e3af6a
minor fix
NimaSarajpoor a646034
change variable name
NimaSarajpoor d6a0a3d
change variables names
NimaSarajpoor 6ae95ec
convert attr to property attr to get 1D when k is 1
NimaSarajpoor 73ebe40
avoid calling performant function in a naive function
NimaSarajpoor 4719e2f
minor modification on z_norm functions
NimaSarajpoor 308af69
merge from remote branch
NimaSarajpoor 63b2828
fix function
NimaSarajpoor 3787776
update local branch
NimaSarajpoor d1f3119
revise docstrings
NimaSarajpoor 4a94c0e
change variable name
NimaSarajpoor 34361f7
Relocate comment
NimaSarajpoor 8d0258a
minor changes
NimaSarajpoor 1b64959
Update branch
NimaSarajpoor 428ef8c
pull latest changes and resolve conflict
NimaSarajpoor 9ad63d3
update local branch
NimaSarajpoor abb4518
fix uint
NimaSarajpoor 329889e
fixed uint
NimaSarajpoor 6864f11
merge remote branch
NimaSarajpoor c0e9f74
fixed test function
NimaSarajpoor 27c05c3
fixed calling function
NimaSarajpoor c45b8a4
Removed redundant return statement
NimaSarajpoor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.