Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CostAR modifies signal in-place #162

Closed
robert-lieck opened this issue May 24, 2021 · 2 comments · Fixed by #164
Closed

CostAR modifies signal in-place #162

robert-lieck opened this issue May 24, 2021 · 2 comments · Fixed by #164

Comments

@robert-lieck
Copy link

Using CostAR with Pelt (I assume also with other search methods) modifies the provided signal in-place. That is, when providing a numpy array as a signal, the original data will be manipulated. Of course, making an explicit copy of the data before calling fit prevents this, but I feel this should not be expected or be very prominently mentioned in the documentation.

To give you an idea, here is a screen shot. I looks like the first couple of points are replaced by their mean or something:

image

@deepcharles
Copy link
Owner

Hello,

Indeed this is bad practice. I'll look into that. Thanks

@robert-lieck
Copy link
Author

Oh, that's why your issues list is so short... 😄 Impressive time to respond and fix, many thanks!

Great library by the way and very useful for the evaluation of new methods. Hope to be able to express my gratitude by providing another citation shortly 😉

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

Successfully merging a pull request may close this issue.

2 participants