sknifedatar icon indicating copy to clipboard operation
sknifedatar copied to clipboard

The column date must be ordered by ascending?

Open ichsan2895 opened this issue 3 years ago • 1 comments

Hello, I have tried this tutorial

https://github.com/rafzamb/sknifedatar

I found some bug (or restriction maybe?). Sknifedatar will give wrong test dataset if the column date is not ordered by ascending.

Lets try this ORIGINAL nested_serie = emae_series %>% filter(date < '2020-02-01') %>% nest(nested_column=-sector)

EXPERIMENT nested_serie = emae_series %>% filter(date < '2020-02-01') %>% arrange(desc(date)) %>% nest(nested_column=-sector)

The result is like this: testing

and this forecast

I aware this problem since I tried with another dataset which have random order of date column.

ichsan2895 avatar May 04 '21 07:05 ichsan2895

Hey @ichsan2895 , Thanks for this comment! This function currently expects the data in ascending order. However, data order validation could be implemented in future developments.

karbartolome avatar May 08 '21 21:05 karbartolome