How to get the slope of the last trend segment in prophet library

Viewed 28

I'm using facebook prophet library to detect trend changes in stock price.

changepoints

I need the last trend segment's slope to detect trend direction (if it goes up or down). I have looked into the model object but did not find needed data.

0 Answers
Related