facebook / facebook/prophet

Output the scores of change points

Open
#2,384 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
20.4k
Forks
4.6k
Avg merge
19h 52m
Merged PRs (30d)
1

Description

Hi,
I believe an option to see the scores of the change points could be beneficial.
Now it's possible to see the location of **all** change points as `Prophet().changepoints` and then only part of them can be displayed through `add_changepoints_to_plot()`.
As to me it's not very convenient:
- it's not straightforward to understand why the number of change points on a plot is lower than the number of items in the `changepoints` property of a Prophet instance
- not possible to select directly top-N change points
- as a partial case of above: not possible to get the most significant change point

I'd suggest to add a property with the scores of each change point (in other words make this calculation
`np.abs(np.nanmean(m.params['delta'], axis=0))`
directly available
Let me know if it sounds reasonable and it's worth to make a pull request.
Thanks,
Andrei

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.