ChangePoint Detection

Open
#2,648 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
pandas, python

Research direction

Start by reproducing the shown Prophet fit and inspecting estimator.changepoints against the supplied time series and image. Read the changepoint-detection behavior and configuration available in Prophet, then establish whether the result is expected or indicates a defect; done means a documented explanation or a reproducible bug with a clear expected result.

Written by the indexing model from the issue text.

Description

I am trying to use the following code to detect changepoints - preferably range changepoints for my application.

estimator = Prophet(yearly_seasonality=True)
df = pd.read_feather(...)
df = df.rename({'Timestamp':"ds","Feeder B_MW":"y"},axis=1)
estimator.fit(df)
print(estimator.changepoints)

The estimated changepoints look like this

280 2021-01-12 16:00:00
561 2021-01-24 09:00:00
841 2021-02-05 01:00:00
1121 2021-02-16 17:00:00
1401 2021-02-28 09:00:00
1682 2021-03-12 02:00:00
1962 2021-03-23 19:00:00
2242 2021-04-04 11:00:00
2523 2021-04-16 04:00:00
2803 2021-04-27 20:00:00
3083 2021-05-09 12:00:00
3363 2021-05-21 04:00:00
3644 2021-06-01 21:00:00
3924 2021-06-13 13:00:00
4204 2021-06-25 05:00:00
4484 2021-07-06 21:00:00
4765 2021-07-18 14:00:00
5045 2021-07-30 06:00:00
5325 2021-08-10 22:00:00
5606 2021-08-22 15:00:00
5886 2021-09-03 07:00:00
6166 2021-09-14 23:00:00
6446 2021-09-26 15:00:00
6727 2021-10-08 08:00:00
7007 2021-10-20 00:00:00

which is not even close o the clear 8 changepoints in the actual data

image

Is it even possible using Prophet? Or I am missing something?

Dominant language
Python
Stars
20.5k
Forks
4.6k
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from facebook/prophet

All issues in facebook/prophet

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.