[BUG] SFA.get_words() and SFAFast.get_words() crash for any normal sliding-window configuration#3609
[BUG] SFA.get_words() and SFAFast.get_words() crash for any normal sliding-window configuration#3609patrickzib wants to merge 8 commits into
Conversation
Thank you for contributing to
|
TonyBagnall
left a comment
There was a problem hiding this comment.
thanks for the fix, but new get_chars helper mutates the input words array while decoding it, by shifting each word in place. A getter shouldnt mutate the state of the object imo
Fixes #3537
SFA.get_words()andSFAFast.get_words()crashed whenwindow_size < n_timepoints(the normal sliding-window configuration). Now fixedChanges
aeon/transformations/collection/dictionary_based/_sfa.py:aeon/transformations/collection/dictionary_based/_sfa_fast.pyaeon/transformations/collection/dictionary_based/tests/test_sfa.py: Add new regression tests covering sliding windowTesting
All tests in
test_sfa.pypass