Skip to content

Commit 32810fb

Browse files
committed
avoid passing unncessary argument k
1 parent 7d74c45 commit 32810fb

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

stumpy/gpu_aamp.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def _compute_and_update_PI_kernel(
4242
compute_p_norm,
4343
bfs,
4444
nlevel,
45-
k,
4645
):
4746
"""
4847
A Numba CUDA kernel to update the non-normalized (i.e., without z-normalization)
@@ -115,11 +114,6 @@ def _compute_and_update_PI_kernel(
115114
compute_p_norm : bool
116115
A boolean flag for whether or not to compute the p-norm
117116
118-
k : int
119-
The number of top `k` smallest distances used to construct the matrix profile.
120-
Note that this will increase the total computational time and memory usage
121-
when k > 1.
122-
123117
Returns
124118
-------
125119
None
@@ -369,7 +363,6 @@ def _gpu_aamp(
369363
False,
370364
device_bfs,
371365
nlevel,
372-
k,
373366
)
374367

375368
for i in range(range_start, range_stop):
@@ -396,7 +389,6 @@ def _gpu_aamp(
396389
True,
397390
device_bfs,
398391
nlevel,
399-
k,
400392
)
401393

402394
profile = device_profile.copy_to_host()

stumpy/gpu_stump.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@cuda.jit(
1919
"(i8, f8[:], f8[:], i8, f8[:], f8[:], f8[:], f8[:], f8[:],"
2020
"f8[:], f8[:], i8, b1, i8, f8[:, :], f8[:], f8[:], i8[:, :], i8[:], i8[:],"
21-
"b1, i8[:], i8, i8)"
21+
"b1, i8[:], i8)"
2222
)
2323
def _compute_and_update_PI_kernel(
2424
i,
@@ -44,7 +44,6 @@ def _compute_and_update_PI_kernel(
4444
compute_QT,
4545
bfs,
4646
nlevel,
47-
k,
4847
):
4948
"""
5049
A Numba CUDA kernel to update the matrix profile and matrix profile indices
@@ -127,11 +126,6 @@ def _compute_and_update_PI_kernel(
127126
The number of levels in the binary search tree from which the array
128127
`bfs` is obtained.
129128
130-
k : int
131-
The number of top `k` smallest distances used to construct the matrix profile.
132-
Note that this will increase the total computational time and memory usage
133-
when k > 1.
134-
135129
Returns
136130
-------
137131
None
@@ -400,7 +394,6 @@ def _gpu_stump(
400394
False,
401395
device_bfs,
402396
nlevel,
403-
k,
404397
)
405398

406399
for i in range(range_start, range_stop):
@@ -428,7 +421,6 @@ def _gpu_stump(
428421
True,
429422
device_bfs,
430423
nlevel,
431-
k,
432424
)
433425

434426
profile = device_profile.copy_to_host()

stumpy/stump.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,6 @@ def _compute_diagonal(
142142
Set to `True` if this is a self-join. Otherwise, for AB-join, set this to
143143
`False`. Default is `True`.
144144
145-
k : int
146-
The number of top `k` smallest distances used to construct the matrix profile.
147-
Note that this will increase the total computational time and memory usage
148-
when k > 1.
149-
150145
Returns
151146
-------
152147
None

0 commit comments

Comments
 (0)