You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following error when using the step_fourier function. This error only occurs when I use time_series_split split with my data to convert paneled time series into training and testing sets. When I input the dataset directly, the error does not occur.
Here the error occurs:
library(recipes)
library(tidyverse)
library(tidyquant)
library(timetk)
dados <- FANG %>% select(symbol,date,volume)
splits <- dados %>%
time_series_split(
assess = "1 months",
cumulative = TRUE
)
rec_obj <- recipe(volume ~ ., data = training(splits)) %>%
step_fourier(date,period=365, K = 1)
rec_obj %>% prep() %>% juice() %>% glimpse()
Follow the error:
Rows: 3,948
Columns: 5
$ symbol <fct> FB, AMZN, NFLX, GOOG, FB, AMZN, NFLX, GOOG, FB, AMZN,…
$ date <date> 2013-01-02, 2013-01-02, 2013-01-02, 2013-01-02, 2013…
$ volume <dbl> 69846400, 3271000, 19431300, 5101500, 63140600, 27509…
$ date_sin365_K1 <dbl> NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN…
$ date_cos365_K1 <dbl> NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN…
Warning messages:
1: Problem while computing `date_sin365_K1 = timetk::fourier_vec(...)`.
ℹ NaNs produced
2: Problem while computing `date_cos365_K1 = timetk::fourier_vec(...)`.
ℹ NaNs produced
Hello!
I have the following error when using the step_fourier function. This error only occurs when I use time_series_split split with my data to convert paneled time series into training and testing sets. When I input the dataset directly, the error does not occur.
Here the error occurs:
Here the error does not occur:
Can anyone please help me?
The text was updated successfully, but these errors were encountered: