Unofficial Implementation of RobustSTL: A Robust Seasonal-Trend Decomposition Algorithm for Long Time Series (AAAI 2019)
281
stars
51
forks
source link
Hi,DoYup !Function get_relative_trends has bug when sum delta_trends #8
Closed
zhoul14 closed 4 years ago
The code:
should be
Because idxs is [0,1,2,3,4,5.....] when idxs = 0 , np.sum(delta_trends[:idx]) will be zeros, and relative_trends must be [0,0,.....]
The bug would make trend delay one time.