Skip to content

Commit 4518008

Browse files
committed
Updated README, docstrings, API docs
1 parent c512038 commit 4518008

File tree

6 files changed

+29
-10
lines changed

6 files changed

+29
-10
lines changed

README.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,7 @@ To install stumpy from source, see the instructions in the `documentation <https
212212
Documentation
213213
-------------
214214

215-
In order to fully understand and appreciate the underlying algorithms and applications, it is imperative that you read the original publications_. For a more detailed example of how to use STUMPY please consult the latest `documentation <https://stumpy.readthedocs.io/en/latest/>`__ or explore the following tutorials:
216-
217-
1. `The Matrix Profile <https://stumpy.readthedocs.io/en/latest/Tutorial_The_Matrix_Profile.html>`__
218-
2. `STUMPY Basics <https://stumpy.readthedocs.io/en/latest/Tutorial_STUMPY_Basics.html>`__
219-
3. `Time Series Chains <https://stumpy.readthedocs.io/en/latest/Tutorial_Time_Series_Chains.html>`__
220-
4. `Semantic Segmentation <https://stumpy.readthedocs.io/en/latest/Tutorial_Semantic_Segmentation.html>`__
215+
In order to fully understand and appreciate the underlying algorithms and applications, it is imperative that you read the original publications_. For a more detailed example of how to use STUMPY please consult the latest `documentation <https://stumpy.readthedocs.io/en/latest/>`__ or explore our `hands-on tutorials <https://stumpy.readthedocs.io/en/latest/tutorials.html>`__.
221216

222217
-----------
223218
Performance

docs/api.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ STUMPY API
2929
stumpy.gpu_mpdist
3030
stumpy.motifs
3131
stumpy.match
32+
stumpy.mmotifs
3233
stumpy.snippets
3334
stumpy.stimp
3435
stumpy.stimped
@@ -142,6 +143,11 @@ match
142143

143144
.. autofunction:: stumpy.match
144145

146+
mmotifs
147+
=======
148+
149+
.. autofunction:: stumpy.mmotifs
150+
145151
snippets
146152
========
147153

stumpy/gpu_aamp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,9 @@ def gpu_aamp(T_A, m, T_B=None, ignore_trivial=True, device_id=0, p=2.0):
346346
347347
This is a convenience wrapper around the Numba `cuda.jit` `_gpu_aamp` function
348348
which computes the non-normalized matrix profile according to modified version
349-
GPU-STOMP.
349+
GPU-STOMP. The default number of threads-per-block is set to `512` and may be
350+
changed by setting the global parameter `config.STUMPY_THREADS_PER_BLOCK` to an
351+
appropriate number based on your GPU hardware.
350352
351353
Parameters
352354
----------

stumpy/gpu_ostinato.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def gpu_ostinato(Ts, m, device_id=0, normalize=True, p=2.0):
8383
>>> from numba import cuda
8484
>>> if __name__ == "__main__":
8585
... all_gpu_devices = [device.id for device in cuda.list_devices()]
86-
... stumpy.gpu_ostinatoe(
86+
... stumpy.gpu_ostinato(
8787
... [np.array([584., -11., 23., 79., 1001., 0., 19.]),
8888
... np.array([600., -10., 23., 17.]),
8989
... np.array([ 1., 9., 6., 0.])],

stumpy/gpu_stump.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,10 @@ def gpu_stump(
380380
Compute the z-normalized matrix profile with one or more GPU devices
381381
382382
This is a convenience wrapper around the Numba `cuda.jit` `_gpu_stump` function
383-
which computes the matrix profile according to GPU-STOMP.
383+
which computes the matrix profile according to GPU-STOMP. The default number of
384+
threads-per-block is set to `512` and may be changed by setting the global parameter
385+
`config.STUMPY_THREADS_PER_BLOCK` to an appropriate number based on your GPU
386+
hardware.
384387
385388
Parameters
386389
----------

stumpy/motifs.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,12 @@ def motifs(
247247
--------
248248
stumpy.match : Find all matches of a query `Q` in a time series `T`
249249
stumpy.mmotifs : Discover the top motifs for the multi-dimensional time series `T`
250+
stumpy.stump : Compute the z-normalized matrix profile
251+
stumpy.stumped : Compute the z-normalized matrix profile with a distributed dask
252+
cluster
253+
stumpy.gpu_stump : Compute the z-normalized matrix profile with one or more GPU
254+
devices
255+
stumpy.scrump : Compute an approximate z-normalized matrix profile
250256
251257
Examples
252258
--------
@@ -393,7 +399,14 @@ def match(
393399
394400
See Also
395401
--------
396-
stumpy.motifs : Discover the top motifs for time series T
402+
stumpy.motifs : Discover the top motifs for time series `T`
403+
stumpy.mmotifs : Discover the top motifs for the multi-dimensional time series `T`
404+
stumpy.stump : Compute the z-normalized matrix profile
405+
stumpy.stumped : Compute the z-normalized matrix profile with a distributed dask
406+
cluster
407+
stumpy.gpu_stump : Compute the z-normalized matrix profile with one or more GPU
408+
devices
409+
stumpy.scrump : Compute an approximate z-normalized matrix profile
397410
398411
Examples
399412
--------

0 commit comments

Comments
 (0)