zhaokg / Rbeast

Bayesian Change-Point Detection and Time Series Decomposition
227 stars 37 forks source link

Segmentation Fault when running rbeast in a for-loop with hasOutlier=True #32

Open marinasie opened 1 month ago

marinasie commented 1 month ago

Hi everyone,

I've been using your algorithm to detect change points in bird populations, and I'm loving the results so far!

When I run BEAST like this without a for-loop, it works perfectly: o = rb.beast(y, deltat='7 days', period='1 year', hasOutlier=True) However, when I introduce a for-loop around it to calculate change points for multiple time series, the first iteration executes without any issues, but I encounter a segmentation fault during the second iteration. With hasOutlier=False, the loop works fine.

I'm using the latest version of the Python package on my Mac, and all my time series have a length of 260.

Do you have any suggestions on how I might resolve this issue? Thank you!

dirt commented 1 month ago

Marina,

Thanks for the important feedback. Unfortunately there is no way to tell what went wrong without reproducing the error on my end. If possible, can you share a sample dataset plus the failing script for me to test-run it and figure out the cause?

Thanks. Kaiguang


From: Marina Siebold @.> Sent: Friday, August 2, 2024 5:06 AM To: zhaokg/Rbeast @.> Cc: Subscribed @.***> Subject: [zhaokg/Rbeast] Segmentation Fault when running rbeast in a for-loop (Issue #32)

Hi everyone, I've been using your algorithm to detect change points in bird populations, and I'm loving the results so far! When I run BEAST without a for-loop, it works perfectly. However, when I introduce a for-loop around o = rb. beast(. . . )

Hi everyone,

I've been using your algorithm to detect change points in bird populations, and I'm loving the results so far!

When I run BEAST without a for-loop, it works perfectly. However, when I introduce a for-loop around o = rb.beast(...) to calculate change points for multiple time series, the first iteration executes without any issues, but I encounter a segmentation fault during the second iteration.

I'm using the latest version of the Python package on my Mac, and all my time series have a length of 260.

Do you have any suggestions on how I might resolve this issue? Thank you!

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/zhaokg/Rbeast/issues/32__;!!KGKeukY!xJlnrVg2XlX9kExmpsNWQa_fEEkC_8Yoh2Z7KPdkB7Y1ZtS0qEXwAx33GJCzUtu4X0ssWlK_HpdnrLJJfIsyKshiRDwt$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AMCAGWSDPKZ6L76AMIALZ6LZPND2NAVCNFSM6AAAAABL4EUD36VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2DINBWHEZTAOI__;!!KGKeukY!xJlnrVg2XlX9kExmpsNWQa_fEEkC_8Yoh2Z7KPdkB7Y1ZtS0qEXwAx33GJCzUtu4X0ssWlK_HpdnrLJJfIsyKk7m481I$. You are receiving this because you are subscribed to this thread.Message ID: @.***>

dirt commented 1 month ago

Sorry. I forgot to mention that you can directly communicate with me at @.***

Thanks. Kaiguang


From: Marina Siebold @.> Sent: Friday, August 2, 2024 5:06 AM To: zhaokg/Rbeast @.> Cc: Subscribed @.***> Subject: [zhaokg/Rbeast] Segmentation Fault when running rbeast in a for-loop (Issue #32)

Hi everyone, I've been using your algorithm to detect change points in bird populations, and I'm loving the results so far! When I run BEAST without a for-loop, it works perfectly. However, when I introduce a for-loop around o = rb. beast(. . . )

Hi everyone,

I've been using your algorithm to detect change points in bird populations, and I'm loving the results so far!

When I run BEAST without a for-loop, it works perfectly. However, when I introduce a for-loop around o = rb.beast(...) to calculate change points for multiple time series, the first iteration executes without any issues, but I encounter a segmentation fault during the second iteration.

I'm using the latest version of the Python package on my Mac, and all my time series have a length of 260.

Do you have any suggestions on how I might resolve this issue? Thank you!

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/zhaokg/Rbeast/issues/32__;!!KGKeukY!xJlnrVg2XlX9kExmpsNWQa_fEEkC_8Yoh2Z7KPdkB7Y1ZtS0qEXwAx33GJCzUtu4X0ssWlK_HpdnrLJJfIsyKshiRDwt$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AMCAGWSDPKZ6L76AMIALZ6LZPND2NAVCNFSM6AAAAABL4EUD36VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2DINBWHEZTAOI__;!!KGKeukY!xJlnrVg2XlX9kExmpsNWQa_fEEkC_8Yoh2Z7KPdkB7Y1ZtS0qEXwAx33GJCzUtu4X0ssWlK_HpdnrLJJfIsyKk7m481I$. You are receiving this because you are subscribed to this thread.Message ID: @.***>

marinasie commented 1 month ago

Thank you very much! I contacted you via email 😊

dirt commented 1 month ago

HI Marina,

Thanks. I didn't get any other messages from you about the sample data or crashing script. My working email is @.***

Best,

Kaiguang


From: Marina Siebold @.> Sent: Monday, August 5, 2024 7:22 AM To: zhaokg/Rbeast @.> Cc: Zhao, Kaiguang @.>; Comment @.> Subject: Re: [zhaokg/Rbeast] Segmentation Fault when running rbeast in a for-loop with hasOutlier=True (Issue #32)

Thank you very much! I contacted you via email 😊 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented. Message ID: zhaokg/Rbeast/issues/32/2268835604@ github. com ‍ ‍ ‍ ‍ ‍ ‍ ‍

Thank you very much! I contacted you via email 😊

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/zhaokg/Rbeast/issues/32*issuecomment-2268835604__;Iw!!KGKeukY!3jqQseI3x9iL6oWQvXAZLt8iw-Ej9tVjKlmNizy71SqumvhXSzqFkx54tNflDwN2MoOpmrztyWUO3pYAksSmgOWQ3JFh$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AMCAGWWNFEGUKV2V637WEVLZP5N7NAVCNFSM6AAAAABL4EUD36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRYHAZTKNRQGQ__;!!KGKeukY!3jqQseI3x9iL6oWQvXAZLt8iw-Ej9tVjKlmNizy71SqumvhXSzqFkx54tNflDwN2MoOpmrztyWUO3pYAksSmgBQQF7-V$. You are receiving this because you commented.Message ID: @.***>

zhaokg commented 1 month ago

Thank you very much! I contacted you via email 😊

My email is zhao.1423@osu.edu.

marinasie commented 1 month ago

Thank you! @zhaokg I contacted you, could you forward it to @dirt ? :)

zhaokg commented 1 month ago

Thank you! @zhaokg I contacted you, could you forward it to @dirt ? :)

Sorry. @dirt (zhao.1423@osu.edu, my working emall) and @zhaokg (lidar.rs@gmail.com, personal email) is the same person. It is me. Sorry about the confusion I checked both the email boxes, and didn't see anything from you.

Thanks,

marinasie commented 1 month ago

I resent it to your personal email, I hope it reached you well. :)