Questing regarding sum_of_costs
for PELT
#203
-
Hi, I am new to change point detection and I have been greatly enjoying trying out your package, so thanks for creating this! I have a quick question regarding the method
Here I have used PELT to find changepoints in a signal using a custom cost. I then use Best wishes, |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
Thanks for using
Line 53 in b84df2c Cheers Charles |
Beta Was this translation helpful? Give feedback.
-
@deepcharles - I'm a little confused by the explanation here. I seem to get different sum_of_costs responses after adjusting the penalty for the same dataset. It appears that choice of penalty does affect the sum_of_costs return. I'm hoping this means it genuinely calculates the value, based on the penalty.
Each of these 4 penalty / sum_of_costs runs return a different value. |
Beta Was this translation helpful? Give feedback.
-
Hi, The method
In your example, Hope this helps, Charles |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response - I'm hoping this means that they are still related, even if not directly passed into the function. Each penalty run produces a different set of This seems to be working. I'm just hoping to confirm that this is working properly, or if using |
Beta Was this translation helpful? Give feedback.
-
Realizing now that a plot of penalty values by number of changepoints is more helpful here. Sum of costs is not as helpful. |
Beta Was this translation helpful? Give feedback.
-
Here is an example where the sum of costs is plotted to find the number of changes : https://centre-borelli.github.io/ruptures-docs/examples/music-segmentation/. |
Beta Was this translation helpful? Give feedback.
Thanks for using
ruptures
, glad to hear it is useful.sum_of_costs
only returns the sum of costs without the penalty term. This is a bit hidden in the code (it is here if you are curious:ruptures/src/ruptures/base.py
Line 53 in b84df2c
Cheers
Charles