stumpy
stumpy copied to clipboard
Add New Class Property
trafficstars
Currently, it is very hard to retrieve the raw matrix profile values from the Pan Matrix Profile object and the PAN_ property only returns transformed (i.e., normalized, contrasted, binarized) matrix profiles. One solution is to add a P_ property that will return a list of matrix profiles ordered by BFS:
@property
def P_(self):
P = []
for i, idx in enumerate(pmp._bfs_indices):
P.append(self._PAN[idx][ : len(self._T) - self._M[i] + 1])
return P
Something like this might work...