-
Hey, I just started using the ruptures module and I have a question related to this module. My data consist of many lineair regressions. I use ruptures to detect the change points. Because I'm interested in the slope of the lineair regressions , I use the 'pwlf' module to determine the slope. For ruptures I use the following settings: search engine = Pelt, cost function = l1 (only one tested so far). The jump, penalty-value and min_size I vary. Observing the linear regressions the search engine seems to detect change points with almost zero change in slope. Is there a way I can set the minimum change in slope to detect? Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 replies
-
the cost function l1 detects change in the mean (in the median actually), so it will certainly make mistakes in case of change of slopes. You can try the cost function Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
@YungDurum, if you signal has discontinuity at the break points, you still might have some solutions. I see two possibilities depending on the shape of the signal you are trying the segment :
Hope it helps ! |
Beta Was this translation helpful? Give feedback.
-
Hi @YungDurum , I do not know in which setup you are working on this, but just so you know if the problem to solve is research oriented, it is possible for us at Centre Borelli to work on a joint paper publication in a scientific journal. Enjoy using |
Beta Was this translation helpful? Give feedback.
-
Thank you for all the examples! This is very useful! |
Beta Was this translation helpful? Give feedback.
@YungDurum, if you signal has discontinuity at the break points, you still might have some solutions. I see two possibilities depending on the shape of the signal you are trying the segment :
np.arange(0, signal.shape[0])
as the X matrix. Beware of how to package the signal in order to pass both they
and theX
at the cost object creation time : you can look at the example here and theCostLinear
class doc to see how to stack bothy
andX