rafzamb / sknifedatar

sknifedatar is a package that serves primarily as an extension to the modeltime 📦 ecosystem. In addition to some functionalities of spatial data and visualization.
https://rafzamb.github.io/sknifedatar/
Other
37 stars 11 forks source link

The outcome column must be named "value"? #16

Closed ichsan2895 closed 3 years ago

ichsan2895 commented 3 years ago

Hello, I am new with sknifedatar, so I have tried this tutorial:

https://github.com/rafzamb/sknifedatar

But with different dataset which contains outcome column named "hits" instead "value",

When I tried run this syntax:

model_table_emae = modeltime_multifit(serie = nested_serie %>% head(3),
                                       .prop = 0.8,
                                       m_auto_arima,
                                       m_stlm_arima,
                                       m_nnetar)

Error: Problem with mutate() input m_auto_arima. x object 'value' not found i Input m_auto_arima is purrr::map(...).

image

This problem solved when I changed colnames "hits" to "value".

rafzamb commented 3 years ago

Hi, thank you very much for reporting this. Maybe some restriction and a warning should be added so that the columns of the time series have "date" and "value" names.

rafzamb commented 3 years ago

The issue was resolved through the main branch