Skip to content

ruptures got 2 out of 3 change points correct #324

@munchine

Description

@munchine

Great tool but it seems that ruptures can correctly detect 2 out of 3 correctly. Am I doing something wrong? I’ve attached the data.
Rupture_Test_Data1.xlsx

It’s a log log so here’s my code snippet
`def detect_and_plot(x, y, title):
# Change point detection on log-transformed data
xy = np.column_stack((x, y))
algo = rpt.Pelt(model="rbf").fit(xy)
result = algo.predict(pen=10)

x_log = np.log(data_cleaned['tD (x)'].to_numpy())
y_log = np.log(data_cleaned['pDp (y)'].to_numpy())
`
Here’s the plot and the 3rd change point, should occur around 14, but it is occurring around 19. Any guidance will be much appreciated.
pDp_log_plot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions