Closed MislavSag closed 2 years ago
Hi,
I am not sure how to set Task for forecasting.
If I use:
task = TaskForecast$new(id = 'excess', backend = sp500_indicators[, .(index, excess)], target = 'excess')
where index is datetime column and excess is numeric vector. I get an error:
Error in df_to_backend(backend, target, time_col) : Assertion on 'date_col' failed: Must be a subset of {'index','excess'}, not 'NULL'.
But than, if I use:
task = TaskForecast$new(id = 'excess', backend = sp500_indicators[, .(index, excess)], target = 'excess', date_col = 'index')
it returns and error:
Error in initialize(...) : unused argument (date_col = "index")
This seems to be addressed and fixed now. Feel free to re-open if the problem persists. I have also improved documentation in TaskForecast in that regard.
TaskForecast
Hi,
I am not sure how to set Task for forecasting.
If I use:
where index is datetime column and excess is numeric vector. I get an error:
But than, if I use:
it returns and error: