Replies: 1 comment
-
|
@snvv Thank you for your question and welcome to the STUMPY community.
So, throughout the STUMPY documentation, we generally reserve Thus, this should work:
I don't think this statement is true according to the Please feel free to ask any follow up questions or let me know if there's anything else that I could clarify. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello and thank you for your excellent package.
When providing a pre-computed Inverse Average Complexity (IAC) profile via the
custom_iacparameter tostumpy.fluss, aValueErrorrelated to shape incompatibility is raised within the internal_cacfunction. This occurs even when thecustom_iacarray is confirmed to have the correct expected shape(len(I) - L + 1,).According to the documentation and intended use,
stumpy.flussshould acceptcustom_iacof shape(len(I) - L + 1,)and use it directly in the CAC calculation.Steps to Reproduce
I.Land the number of regimesn_regimes.profile_len = len(I) - L + 1.custom_iacarray of shape(profile_len,).stumpy.flusspassing thecustom_iac.Observed Behavior
When running the code above, the following output and traceback are observed:
Followed by a traceback similar to this (line numbers might vary slightly but the core error location is within
stumpy.floss._cac):The error occurs at
CAC[:] = AC / IACwithin_cac. The error message indicates shapes(600,)and(551,). SinceCACandACare internally computed based onNandL, they are expected to have shape(551,). The presence of(600,)suggests that the variable representing the IAC profile within_cacis incorrectly inheriting the shape of the original time seriesI(600) instead of using the providedcustom_iacwhich has the correct shape (551). This contradicts the print statements verifying thecustom_iacshape before the function call.Expected Behavior
The
stumpy.flussfunction should successfully run when provided with acustom_iacarray that has the shape(len(I) - L + 1,), without raising aValueError. Thecustom_iacshould be used directly in the calculationCAC = AC / IACwhereAC,IAC, andCACall have the shape(len(I) - L + 1,).Regards
snvv
Beta Was this translation helpful? Give feedback.
All reactions