deepcharles / ruptures

ruptures: change point detection in Python
BSD 2-Clause "Simplified" License
1.64k stars 161 forks source link

Not detecting large spikes in data #331

Open zdalvabaird opened 3 months ago

zdalvabaird commented 3 months ago

I am using the cosine model on my timeseries which has many different forms of data but it isn't detecting any changes on some of the large spikes. Below here is the model and penalty I am using, and the segment of the graph that I am concerned about. Is there a mistake that I am making which causes it to not detect this as a change point?

for model, p in zip(models=[cosine], pens=[8]):
    print(model)
    try:
        algo = rpt.Pelt(model=models, min_size=0, jump=1)
        algo.fit(signal)
        result = algo.predict(pen=p)

image image