Commit 5e4a493
* [ADD] Added new test files
* [ADD] Added pytests for 'mmotifs' and 'aamp_mmotifs'
* [DEL] Deleted test templates for the multidimensional case
* [ADD] Added function to find one motif in all dimensions
* [FIX] Reran black and flake8
* [ADD] Added exclusion zone to function
* [MOD] Don't use naive implementation
* [ADD] Added arrange and assert to the first test function
* [MOD] Changed assertions to 'almost_equal'
* [ADD] Added match functions from 'test_motifs.py'
* [ADD] Added dummy test
* [DEL & ADD] Deleted test_match() and added test function with default parameters
* [ADD] Added test function to find the top two motifs
* [ADD] Added function to test 2-dimensional motif discovery
* [FIX] Fixed formatting
* [ADD] Added test function to find motifs with the 'max_motifs' parameter only
* Revert "[ADD] Added test function to find motifs with the 'max_matches' parameter only"
This reverts commit d169441.
* [ADD] Added test function to find motifs with the 'max_distance' parameter
* [ADD] Make copy of the matrix profile
* [ADD] Also make copy of matrix profile in 'aamp_mmotifs.py'
* [FIX] Corrected the expected motif subspaces
* [ADD] Added function to test the two dimensional and non-normalized motif discovery
* [MOD] Changed to naive matrix profile computation
* [ADD] Added 'query_idx' parameter to ensure that the self-match is returned if the query is a part of the time series.
* [MOD] Change subsequence length m and time series T
* [MOD] Change to naive computation and change time series
* [MOD] Reformat file
* [ADD] Add docstring documentation
* [MOD] Reformat file
* [MOD] Modified docstring description for the 'query_idx' parameter
* [ADD] Added 'query_idx' to 'aamp_motifs'
* [ADD] Added 'query_idx' to function call of 'aamp_match'
* [ADD] Added 'query_idx' to '_motifs' and '_aamp_motifs'
* [ADD] Added test function for 'max_matches=None'
* [FIX] Set 'max_matches=None' instead of 'max_distance=None'
* [ADD] Add test function for cutoffs parameter
* [ADD] Add test function for setting 'max_matches=None'
* [ADD] Added comment to explain function in more detail
* [ADD] Added test function for finding multiple motifs with the cutoffs parameter
* [ADD] Added 'pragma: no cover' comment
* [DEL] Remove comment
* [MOD & DEL] Modified function ordering and removed comments
* [MOD] Changed '_expected' to '_ref'
* [MOD] Marked comparison values with '_cmp'
* [MOD] Renamed functions
* [ADD] Added function that tests when cutoffs are a list
* [ADD] Also tested cutoffs as list in 'test_aamp_mmotifs'
* [MOD] Changed function ordering
* [MOD] Declare time series array once at the beginning
* [MOD] Renamed functions
* [ADD] Added function with default parameters
* [FIX] Fixed function names
Co-authored-by: Sarah <sarah.volkamer@iis.fraunhofer.de>
1 parent 2e798e8 commit 5e4a493
File tree
8 files changed
+491
-63
lines changed- stumpy
- tests
8 files changed
+491
-63
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
162 | | - | |
| 163 | + | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
| |||
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| 173 | + | |
172 | 174 | | |
173 | 175 | | |
174 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
| 299 | + | |
298 | 300 | | |
299 | 301 | | |
300 | 302 | | |
| |||
334 | 336 | | |
335 | 337 | | |
336 | 338 | | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
337 | 347 | | |
338 | 348 | | |
339 | 349 | | |
| |||
381 | 391 | | |
382 | 392 | | |
383 | 393 | | |
384 | | - | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
385 | 399 | | |
386 | 400 | | |
387 | 401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
181 | | - | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| 193 | + | |
192 | 194 | | |
193 | 195 | | |
194 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
322 | 323 | | |
323 | 324 | | |
324 | 325 | | |
| 326 | + | |
325 | 327 | | |
326 | 328 | | |
327 | 329 | | |
| |||
365 | 367 | | |
366 | 368 | | |
367 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
368 | 378 | | |
369 | 379 | | |
370 | 380 | | |
| |||
433 | 443 | | |
434 | 444 | | |
435 | 445 | | |
436 | | - | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
437 | 451 | | |
438 | 452 | | |
439 | 453 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| |||
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| 137 | + | |
| 138 | + | |
135 | 139 | | |
136 | 140 | | |
137 | 141 | | |
| |||
0 commit comments