Skip to content

STIMP result mechanism #1043

Nov 2, 2024 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

I mean based on the 1000 length T that you have provided, why pmp._PAN[0] differs from m = 401 stump = stumpy.stump(T, m) stump[:,0]

I think I see the problem. pmp._PAN stores the matrix profiles ordered from smallest m to largest m. However, the matrix profiles are NOT computed in this order and, instead, are computed in "breadth-first-search" (BFS) order. Thus, in order to retrieve the correct BFS order, we must follow the procedure in the pan transformation function (shown in the permalink above) but this example should work:

import numpy as np
import stumpy

T = np.random.rand(1000)
pmp = stumpy.stimp(T, percentage=1.0)
pmp.update()

# retrieve the BFS indices for the matrix profile…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@aycabayraktar
Comment options

@seanlaw
Comment options

@aycabayraktar
Comment options

@seanlaw
Comment options

Answer selected by aycabayraktar
@seanlaw
Comment options

@aycabayraktar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants