-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Binseg incorrect for small data, l2 loss and min_size=1 #242
Comments
Hi, Thanks for raising this issue. Here, the |
Hi @tdhock , Indeed, and we have to address it ! But, just so you know, if you use a Here, the misbehaviour is due to the fact that, from the user perspective you think you have a Hope it helps ! |
ok, but for the l2 cost (square loss change in normal mean, constant variance) the min_size can be 1, so I still expect a valid segmentation should be returned (not an exception). |
Closing the issue since it has been addressed in #255 |
Hi @deepcharles thanks for putting your implementation of binary segmentation online. I am trying to use it to compute the full path of binary segmentation models, but the predict method is giving me an exception for large numbers of breakpoints, and incorrect changepoints for small numbers of breakpoints. Here is a small data example:
In this case there are four data points. I expected the first change to be after the second data point, etc (as shown in expected_break_dict above). Instead I got the results in computed_break_dict, which are not expected:
Am I using Binseg correctly, and is this a bug? If I am not using it correctly, can you please explain the correct way?
Thanks in advance!
Here is the output I got from running the code above on my system:
The text was updated successfully, but these errors were encountered: