From b0bbf00131d139b7230aa1a597be8c314e14d2a6 Mon Sep 17 00:00:00 2001 From: wannesm Date: Thu, 30 Nov 2023 15:40:46 +0100 Subject: [PATCH] symbolization --- dtaidistance/symbolization/alignment.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dtaidistance/symbolization/alignment.py b/dtaidistance/symbolization/alignment.py index 3a99545..a2010a8 100644 --- a/dtaidistance/symbolization/alignment.py +++ b/dtaidistance/symbolization/alignment.py @@ -28,8 +28,7 @@ def align(self, series): for sidx in range(len(sc)): for midx in range(len(self.codebook)): medoidd = np.array(self.codebook[midx]) - sa = subsequence_alignment(medoidd, sc[sidx]) - sa.use_c = self.use_c + sa = subsequence_alignment(medoidd, sc[sidx], use_c=self.use_c) for match in sa.kbest_matches(k=None): patterns[sidx, match.segment[0]:match.segment[1], midx] = match.value patterns[:, :, len(self.codebook)] = 0