Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…595) * Added test function to test TopK scrump in AB_join * Refactored * Added definition of parameter k to docstring * Improved docstring * Removed trailing colon * Cleaned code * Avoided allocating new memory in inner for-loop * Fixed typos * Improved comments * Avoided allocating new memory in each iteration * Same ndim in output regardless of value of k * Revised docstrings * Enhanced function to perform shift left as well * Enhanced test function to test newly added functionality * Fixed format * Fixed format * Removed/Renamed intermediate variables * Renamed variable for the sake of consistency * Avoided shape mismatch by reshaping ndarray * Refactored * Fixed comment * Refacored and Minor restructuring of lines * Modified stimp after changing output shape in scrump * Add pragma no cover * Revised Docstrings * Fixed docstring * Revised docstring * Removed unnecessary dangling else * Removed unnecessary comment * Revised structure of test function so, it follows the structure of the performant version * Replaced ravel with flatten to get copy of array * Changed the type of input parameter and revised docstring * Update the value of parameter to match its type * Update the value of parameter to match its type * Correct format * Changed output structure of naive.scrump * Correct format * Add test function for scrump_plus_plus for TopK * Add naive version to merge peason profiles * Add test function for merging pearson profiles * Corret format * Add performant function to merge pearson profiles * Optimize function * Avoid creating new memory * Improve docstring * Refactored * Avoid creating new memory in for-loop * Update test function * Revise function to make it parallelizable * Full test and coverage in 1hr * Revise docstrings * Revise docstrings * Optimize function * Optimize function * Rename variable to improve readability * Revise comments * Improve comments and docstrings * Correct naive implementation * Enhance naive function to support top matrix profile * Enhace performant function to support topk matrix profile * Update existing test functions * Correct format * Fix shape of array * Fix shape of array * Add kind keyword for sorting * Fix bugs * Remove ineffective inner prange * Temporarily added parameter k to avoid decorator failure * Improve comments * Improve comments * Improve docstring * Add KNN test function for stumpi * Fix shape of output for KNN test * Full test and coverage 1 hr * Avoid using searchsort when k is 1 * Revise code according to top k matrix profile structure * Remove if condition * Improve dosctrings * Avoid allocating new memory * Avoid allocating new memory * Improve comments * Remove numpy.where to avoid copying unchanged values * Remove unnecessary trailing colon * Replace negative np.inf with np.NINF * delete a wrong file * Avoid advance indexing by using chain slicing so it can be run by njit * Improve docstring * Added gpu_searchsorted checks when GPUs unavailable * Added error checks and pytest ignore warning * Improve docstrings * minor changes in if-block and dosctring * Improve docstrings * Improve comments * minor changes * Correct format * Improve docstrings * optimize functions * Remove redundant import * minor change * Revise docstrings * Fixed black formatting after conflict resolution * Correct docstring * Revise docstrings * minor change * Revise comments * Avoid redundant allocation of memory * Revise docstrings and comments * rename variables * minor correction * Fix indexing * Add new test function * Modify test function * Avoid dumplicate in naive prescrump * Add parameter assume_unique to handle duplicates * Add test function to test for duplicates in topk_merge * Add parameter assume_unique to performant merge_topk * fix test function * Fix bug * Revise prescrump to avoid duplicates * Avoid duplocates in scrump * Revise test function to consider new parameter * Fix bug * Revise naive scrump to avoid duplicates * Add comment * minor optimization * Correct style * Correct style * increase threshold * Specifiy kind in sort * minor change * specify kind in sort * minor changes * De-otpimize if condition Due to numerical erorrs, we need to avoid partial traversal of array * Update scrump * minor changes * add new test function * optimize if condition * Give priority to PA in case of ties between IA and IB * Remove trailing colon * update test function * revise function to avoid adding new parameter * Update module scrump and improvee its readability * Fix syntax * update test functions * minor fix * correct format * Improve docstring * Avoid overlap while merging matrix profiles * Add function to find overlapping values * replace numpy function with our implementation * Avoid unnecessary call of a function * Revise docsting and comment * Improve test function * Remove comment * Add test function to ensure duplicates are avoided * Improve comments * Enhance naive version to avoid duplicates while merging * Add test function and revise naive version * Improve code readability and comment * Update top-k profile by getting insertion index In NearestNeighbor case, the distance between sequence i and its NN is the smallest. However, due to `imprecision` in calculation, it is possible that its corresponding distance, i.e. distance between seq i and its NN, is not the smallest value in its top-k neighbors. So, instead of inserting it at index 0, we use numpy.searchsorted to find the correct insertion index. * Merge nested if statements into one * Remove blank lines * Fix typo * Improve comment * Improve comments * Improve docstring * Remove unnecessary comments * passing copy of variable as input * minor change in test functions * Correct style * Revise comment * Remove comment * Revise comment * Fix format * Remove unnecessary newline * Return 1D array for matrix profile when `k` is 1 * Remove unnecessary flattening operatiton on array * Fix comments * Make matrix profile and mp index 1D when k=1 * Revise tests functions * Improve Docstrings * Make prescrump output 1D when k is one * minor change * update test functions * Modify merge_topk to support 1D input * Fix merge_topk * Fix shape of variables in test functions * Remove unnecessary flatten operation * Update test function for case k=1 * revise comment * Avoid using return in the middle of code * Add new private function to get 2D ouput when k=1 * Remove check for 1D in merge_topk * Revise test functions * Revise docstring to provide description for 1D case * Add overlap check in merge_topk with 1D input * Add overlap check in 1D and revise docstring * Add separate test function for _merge_topk 1D case * Add preprocessing function for prescrump * Update test function * fix missing argument * Fix Docstring * Put back the missing decorator * Add preprocessing function in prescraamp * Revise naive function * Fix value of imprecision in test functions * create overlaps randomly for test merge_topk in 1D case * Revise docstrings * Fix docstrings * minor changes * minor fix * change variable name * change variables names * convert attr to property attr to get 1D when k is 1 * avoid calling performant function in a naive function * minor modification on z_norm functions * fix function * revise docstrings * change variable name * Relocate comment * minor changes * fix uint * fixed uint * fixed test function * fixed calling function * Removed redundant return statement Co-authored-by: Sean Law <[email protected]> Co-authored-by: Sean M. Law <[email protected]>
- Loading branch information