You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some trouble understanding the min_size and jump parameters. As I understand it, if I set e.g. jump=5, only every 5th point will be considered (5, 10, 15, 20, 25, ...). So if 20 is detected as changepoint, the nearest points, that could also be a changepoints are 15 and 25. So this implies, that the minimum segment length is 5, just by setting jump=5 and a min_size < 5 should not do anything. So why is the default setting min_size=2 and jump=5? Also when I set min_size > jump in Pelt, it throws the following error:
Traceback (most recent call last): result=algo.predict(pen=1e+7) File "C:\Users\user\AppData\Local\anaconda3\envs\ust\lib\site-packages\ruptures\detection\pelt.py", line 117, in predict partition = self._seg(pen) File "C:\Users\user\AppData\Local\anaconda3\envs\ust\lib\site-packages\ruptures\detection\pelt.py", line 75, in _seg partitions[bkp] = min(subproblems, key=lambda d: sum(d.values())) ValueError: min() arg is an empty sequence
Am I getting something wrong?
Also with Window it seemed to me that min_size doesn't do anything.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I have some trouble understanding the min_size and jump parameters. As I understand it, if I set e.g. jump=5, only every 5th point will be considered (5, 10, 15, 20, 25, ...). So if 20 is detected as changepoint, the nearest points, that could also be a changepoints are 15 and 25. So this implies, that the minimum segment length is 5, just by setting jump=5 and a min_size < 5 should not do anything. So why is the default setting min_size=2 and jump=5? Also when I set min_size > jump in Pelt, it throws the following error:
Traceback (most recent call last): result=algo.predict(pen=1e+7) File "C:\Users\user\AppData\Local\anaconda3\envs\ust\lib\site-packages\ruptures\detection\pelt.py", line 117, in predict partition = self._seg(pen) File "C:\Users\user\AppData\Local\anaconda3\envs\ust\lib\site-packages\ruptures\detection\pelt.py", line 75, in _seg partitions[bkp] = min(subproblems, key=lambda d: sum(d.values())) ValueError: min() arg is an empty sequence
Am I getting something wrong?
Also with Window it seemed to me that min_size doesn't do anything.
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions